You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation was greatly improved for several types, and tons of cross-references have been added. (#77, #78, #80, #82)
DateTime::timestamp_subsec_{millis,micros,nanos} methods have been added. (#81)
Fixed
When the system time records a leap second, the nanosecond component was mistakenly reset to zero. (#84)
Local offset misbehaves in Windows for August and later, due to the long-standing libtime bug (dates back to mid-2015).
Workaround has been implemented. (#85)
Added %.3f, %.6f and %.9f specifier for formatting fractional seconds up to 3, 6 or 9 decimal digits. This is a natural extension to the existing %f. Note that this is (not yet) generic, no other value of precision is supported. (#45)
Tons of supporting examples for the documentation have been added. More to come.
Changed
Forbade unsized types from implementing Datelike and Timelike. This does not make a big harm as any type implementing them should be already sized to be practical, but this change still can break highly generic codes. (#46)
Padding modifiers %_?, %-? and %0? are implemented.
They are glibc extensions which seem to be reasonably widespread (e.g. Ruby).
Added %:z specifier and corresponding formatting items which is essentially the same as %z but with a colon.
Added a new specifier %.f which precision adapts from the input.
This was added as a response to the UX problems in the original nanosecond specifier %f.
Fixed
Numeric::Timestamp specifier (%s) was ignoring the time zone offset when provided.
Improved the documentation and associated tests for strftime.