|
The following code, when applied,
notice(strftime(Timespan('02:03.4', '%M:%S.%L'), '%M:%S.%L'))
|
incorrectly notices
The reason is that the '4' is parsed by the '%L' format descriptor, and hence considered to be milliseconds. While this is correct in some sense, it's not very intuitive. Puppet should instead do what Ruby's DateTime#strptime does and treat %L and %N as values to the right of a decimal point, i.e. a "4" is intepreted as "0.4", which means 400000000 nanoseconds.
|