1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
|
0.44 2018-05-09
- Bug fix in Time::Moment::Adjusters that prevented the exportation
of OrthodoxEasterSunday(). Reported by David Romano (unobe) #29.
- Bug fix in Time::Moment::Adjusters, the PreviousDayOfWeek() routine
computed an incorrect value, fix by Simon Shine (sshine) and tests
by Julien Fiegehenn (simbabque) and Simon Shine #31 and PR #32.
0.43 2018-03-08
- Correct commification of epoch seconds in documentation.
PR #26, by Tim Heaney (oylenshpeegul).
- The macro test around the inclusion of stdbool.h was too broad and
didn't account for compiler abilities. PR #28 by Dale Ghent (daleghent).
0.42 2017-04-10
- Avoid relying on current working directory being in @INC
0.41 2016-12-10
- Time::Moment
- Documented the precision value returned by ->precision()
- Documented the optional precision value in ->compare()
- Time::Moment::Adjusters
- Corrected the NearestMinuteInterval example
- Increased and documented the accepted values for NearestMinuteInterval
0.40 2016-11-26
- Correct forward function declaration to include interpreter context
Bug fix for #22, compilation with threaded perls. Reported by
Slaven Rezić (eserte).
0.39 2016-11-25
- Added following methods to Time::Moment:
- precision
- with_precision
- Added following adjusters to Time::Moment::Adjusters:
- WesternEasterSunday()
- OthodoxEasterSunday()
- NearestMinuteInterval($interval)
- Added following examples to eg/
- eg/se_bank_holidays.pl
0.38 2016-01-22
- Added following methods to the API:
- is_leap_year
- Added following examples to eg/
- eg/age.pl
0.37 2015-12-18
- Added following methods to the API:
- with_quarter
- Clarified parts of documentation
0.36 2015-10-11
- Applied patch from Vitaliy V. Tokarev (issue #15) which addresses build
issues on Solaris with Sun Compiler.
0.35 2015-10-10
- Added support for named parameters in from_epoch
- Fix a compiler issue related to PERL_UNUSED_VAR(), reported by CPAN
smokers, <http://www.cpantesters.org/distro/T/Time-Moment.html?grade=5&version=0.34>.
0.34 2015-10-10
- This release has no code changes. Re-released without object files.
0.33 2015-10-10
- Fixed a bug in from_rd, from_jd and from_mjd when Perl is compiled
with long double. Reported by Slaven Rezić (SREZIC), issue #19.
0.32 2015-10-09
- Added Test::Number::Delta v1.06 as a test prerequisite
- Increased test coverage
- Added following methods to the API:
- from_rd
0.31 2015-09-28
- Added following methods to the API:
- delta_years
- delta_months
- delta_weeks
- delta_days
0.30 2015-09-23
- Fixed a bug in the delta methods that where added in previous release. The
result should be negative if the other time is before the time of the
invocant.
- Added two examples to eg/
- eg/ago.pl
- eg/beat.pl
0.29 2015-09-17
- Changed the fractional second precision in from_epoch() when invoked with
a floating point value from nanosecond precision to microsecond precision.
- Changed the exception message in ->from_string(), from "Cannot parse ..."
to "Could not parse ...".
- Added following methods to the API:
- delta_hours
- delta_minutes
- delta_seconds
- delta_milliseconds
- delta_microseconds
- delta_nanoseconds
- microsecond_of_day
- nanosecond_of_day
- with_microsecond_of_day
- with_nanosecond_of_day
0.28 2015-09-12
- Changed the lenient mode in ->from_string to be more lenient. The string
representation may now consist of a mixture of the basic format and the
extended format. e.g. the date may be in the basic format, while the
time of day is in the extended format, 20121224T12:15:30Z.
- Changed the fractional second precision in ->jd, ->mjd and ->rd from
nanosecond to millisecond, higher precision can be returned by providing
the optional named parameter precision.
- Applied pull request by Gareth Harper (GHARPER) which fixes test issues,
due to changes in Test::More (pull request #17).
0.27 2015-09-02
- Added ->with method
- Added Time::Moment::Adjusters
- Added following examples to eg/
- eg/cal.pl
- eg/excel.pl
- eg/us_federal_holidays.pl
0.26 2015-08-28
- The optional epoch date in ->from_jd and ->from_mjd has changed from
0001-01-01T00Z to 0000-12-31T00Z (Rata Die).
- Applied patch from Vitaliy V. Tokarev (issue #15) which addresses builds
on Solaris.
- Added following methods to the API:
- minutes_of_day
- with_minutes_of_day
- millisecond_of_day
- with_millisecond_of_day
- Internals has been refactored to ease maintainability
- Added more test cases
0.25 2015-07-07
- Added following methods to the API:
- from_jd
- from_mjd
- rd
0.24 2015-05-20
Bug fix for when Perl is compiled with threads.
- Bug introduced in 60591ef (0.23) fixes issue #13, reported by
Dmytro Zagashev (ZDM).
0.23 2015-05-19
- Added following methods to the API:
- at_midnight
- at_noon
- at_last_day_of_year
- at_last_day_of_quarter
- at_last_day_of_month
- with_second_of_day
0.22 2015-02-14
- Fixed issue #12. Redefinition of bool with Visual Studio 2013 C compiler,
reported by A. Sinan Ünür (NANIS).
- Added following method:
- second_of_day
0.21 2014-11-23
- Added following methods to increase consistency in the API:
- with_week
- with_day_of_week
- length_of_week_year
0.20 2014-11-04
- Reduced the required accuracy in ISO 8601 representations, previously
the time of day where required to include hour and minute, the required
accuracy has now been reduced to hour.
- Documented the %w conversion specification in ->srtftime, reported
by Peter Isaksson.
- Minor documentation tweaks.
0.19 2014-10-08
- Fixed Makefile.PL to only check if Module::Install is missing, should
make it possible to install using cpanm.
- Added accessors for Julian Date (->jd) and Modified Julian Date (->mjd).
0.18 2014-09-09
- Ensure that the referenced object has a SvREFCNT of 1 before trying to
reuse the invocant, fixes issue #7. Reported by Tomohiro Hosaka (bokutin).
- Added accessor method ->utc_year, used by DateTime::TimeZone for dates
far into the future, fixes issue #6. Reported by Karl Lohner (klohner).
0.17 2014-08-07
- Ensure that the SvREFCNT is 1 before trying to reuse the invocant in
chained method calls (leont++).
- Require Test::Fatal v0.006 or higher, fixes issue #5. Reported by
Doug Bell (preaction).
- Removed the "early preview release" warning from the documentation.
0.16 2014-03-18
- Fixed the Storable thaw method to account for negative offsets
- Corrected documentation for length_of_{year,quarter,month} methods
- Added following methods to increase consistency in the API:
- with_day_of_quarter()
- with_millisecond()
- with_microsecond()
- plus_milliseconds()
- plus_microseconds()
- minus_milliseconds()
- minus_microseconds()
0.15 2014-02-23
- Changed API in to_string() to use named parameters instead of boolean to
make the API more consistent.
- Added three new methods:
- length_of_year()
- length_of_quarter()
- length_of_month()
- Corrected typedef declaration in dt_config.h, should now hopefully
compile correctly on Windows when using MSC.
0.14 2014-01-26
- Changed now() to use the reentrant localtime_r() if provided by libc
- Added support for the literal strings 'UTC' and 'GMT' as UTC designator
in from_string() when lenient is true.
- Sereal is now a supported serializer, documented and tested. Added an
examample of usage, eg/sereal.pl
0.13 2014-01-04
- Implemented ->with_offset_same_local()
- Renamed the method ->with_offset to ->with_offset_same_instant, the old
method name is aliased.
- Added a new section to the documentation "TIME ZONES" which shows how to
convert between time zones using DateTime::TimeZone.
- Added more tests
0.12 2013-12-29
- Implemented support for lenient parsing in ->from_string, should be capable
of parsing most ISO 8601 profiles, including non conformant ISO 8601
representations such as ISO 9075.
- Implemented support for generic FREEZE / THAW serialization, upcomming Sereal
will support these callbacks.
- Implemented ->new
- Refactored test suite and added more tests
- Implemented support for GNU's '_', '-' and '0' flags in ->strftime()
- Added eg/strftime.pl
0.11 2013-12-15
- Added support for date/time arithmethics
- Added support for altering the components of the date/time
- Changed ->from_epoch to only accept seconds and nanosecond parameters
- Added POD section with example format strings
- Documentation improvements
0.10 2013-12-07
- Added support for fractional seconds in the constructor ->from_epoch
- Added serialization support for:
- Storable
- JSON
- CBOR
- Changed the method ->to_string to return the same string representation
as stringification.
- Optimized the usage of chained method calls from constructors.
- Added eg/cbor.pl and eg/json.pl
0.09 2013-12-05
- Added new constructor method, ->now_utc
- Added two extended conversion specifications, %k and %l. Both common in
GNU, BSD and perl implementations of strftime()
- The extended %f conversion specification now accepts an optional maximum
field width
- Documented remaining methods and overloaded operators
- Added the now_utc constructor to dev/bench.pl
0.08 2013-12-04
- Changed resolution from microsecond to nanosecond
- Implemented ->with_nanosecond()
- Documentation improvements
- Fixed strftime() to preserve the SvUTF8 flag if the given format
string has the SvUTF8 flag set.
- Overhauled strftime() conversion specifications to better confirm to
IEEE Std 1003.1. Extended conversion specifications is now documented
as such.
0.07 2013-12-02
- Documented most of the API.
- Implemented ->to_string().
- Changed stringification to only include fractional seconds in output
if present.
0.06 2013-11-31
- Added more docs.
0.05 2013-11-30
- Renamed internal variable pow10 to prevent symbol clashes
0.04 2013-11-30
- Added accessor for week of the year, ->week
- Implemented support for parsing of any ISO 8601 date and time of day
in both extended and basic format. For example:
- 0001-01-01T00:00:00Z (Calender date, extended format)
- 00010101T000000Z (Calender date, basic format)
- 0001-W01-1T00:00:00Z (Week date, extended format)
- 0001W011T000000Z (Week date, basic format)
- 0001-001T00:00:00Z (Ordinal date, extended format)
- 0001001T000000Z (Ordinal date, basic format)
- Added localtime() and POSIX::strftime() to benchmark, invoking
Time::Moment->now is ~ 70% faster than invoking localtime().
0.03 2013-11-28
- Renamed variable 'sun' to 'sunday' to prevent conflict on Solaris
operating system which defines a macro named 'sun'. (leont++)
0.02 2013-11-25
- Implemented ->from_string() in C
- Implemented ->now() in C if the system supports gettimeofday(2)
- Added dev/sizeof.pl
- Added Time::Piece to dev/bench.pl
0.01 2013-11-24
- Initial CPAN preview release.
|