Changes for version 0.46 - 2025-12-04

  • Added an example to eg/
    • eg/isocal.pl
  • Added an implementation of NearestDayOfWeek() in Time::Moment::Adjusters.
  • Fix Time::Moment->from_epoch when called with a floating-point value whose fractional part rounds to exactly 1.000000000 seconds at 9 decimal digits. Such values previously caused a “Parameter 'nanosecond' is out of the range [0, 999_999_999]” error; they are now normalized by incrementing the second and wrapping nanoseconds to zero, consistent with the rd/jd/mjd constructors. Reported by @butzsch, addressing issue #40.

Modules

Represents a date and time of day with an offset from UTC
Adjusters for Time::Moment