DateTime
view release on metacpan or search on metacpan
You can enable a git pre-commit hook for linting by running `./git/setup.pl`.
Note that linting will be checked in CI, and it's okay to submit a PR which
fails the linting check, but it's extra nice to fix these yourself.
# THE DATETIME PROJECT ECOSYSTEM
This module is part of a larger ecosystem of modules in the DateTime family.
## [DateTime::Set](https://metacpan.org/pod/DateTime%3A%3ASet)
The [DateTime::Set](https://metacpan.org/pod/DateTime%3A%3ASet) module represents sets (including recurrences) of
datetimes. Many modules return sets or recurrences.
## Format Modules
The various format modules exist to parse and format datetimes. For example,
[DateTime::Format::HTTP](https://metacpan.org/pod/DateTime%3A%3AFormat%3A%3AHTTP) parses dates according to the RFC 1123 format:
my $datetime
= DateTime::Format::HTTP->parse_datetime(
'Thu Feb 3 17:03:55 GMT 1994');
print DateTime::Format::HTTP->format_datetime($datetime);
Most format modules are suitable for use as a `formatter` with a DateTime
object.
All format modules start with
[DateTime::Format::](https://metacpan.org/search?q=datetime%3A%3Aformat).
## Calendar Modules
There are a number of modules on CPAN that implement non-Gregorian calendars,
such as the Chinese, Mayan, and Julian calendars.
All calendar modules start with
[DateTime::Calendar::](https://metacpan.org/search?q=datetime%3A%3Acalendar).
## Event Modules
There are a number of modules that calculate the dates for events, such as
Easter, Sunrise, etc.
All event modules start with
[DateTime::Event::](https://metacpan.org/search?q=datetime%3A%3Aevent).
## Others
There are many other modules that work with DateTime, including modules in the
[DateTimeX namespace](https://metacpan.org/search?q=datetimex) namespace, as
well as others.
See [MetaCPAN](https://metacpan.org/search?q=datetime) for more modules.
# KNOWN BUGS
The tests in `20infinite.t` seem to fail on some machines, particularly on
Win32. This appears to be related to Perl's internal handling of IEEE infinity
and NaN, and seems to be highly platform/compiler/phase of moon dependent.
If you don't plan to use infinite datetimes you can probably ignore this. This
will be fixed (perhaps) in future versions.
# SEE ALSO
[A Date with Perl](http://presentations.houseabsolute.com/a-date-with-perl/) -
a talk I've given at a few YAPCs.
[datetime@perl.org mailing list](http://lists.perl.org/list/datetime.html)
# SUPPORT
Bugs may be submitted at [https://github.com/houseabsolute/DateTime.pm/issues](https://github.com/houseabsolute/DateTime.pm/issues).
There is a mailing list available for users of this distribution,
[mailto:datetime@perl.org](mailto:datetime@perl.org).
# SOURCE
The source code repository for DateTime can be found at [https://github.com/houseabsolute/DateTime.pm](https://github.com/houseabsolute/DateTime.pm).
# DONATIONS
If you'd like to thank me for the work I've done on this module, please
consider making a "donation" to me via PayPal. I spend a lot of free time
creating free software, and would appreciate any support you'd care to offer.
Please note that **I am not suggesting that you must do this** in order for me
to continue working on this particular software. I will continue to do so,
inasmuch as I have in the past, for as long as it interests me.
Similarly, a donation made in this way will probably not make me work on this
software much more, unless I get so many donations that I can consider working
on free software full time (let's all have a chuckle at that together).
To donate, log into PayPal and send money to autarch@urth.org, or use the
button at [https://houseabsolute.com/foss-donations/](https://houseabsolute.com/foss-donations/).
# AUTHOR
Dave Rolsky <autarch@urth.org>
# CONTRIBUTORS
- Ben Bennett <fiji@limey.net>
- Christian Hansen <chansen@cpan.org>
- Daisuke Maki <dmaki@cpan.org>
- Dan Book <grinnz@gmail.com>
- Dan Stewart <danielandrewstewart@gmail.com>
- David Dyck <david.dyck@checksum.com>
- David E. Wheeler <david@justatheory.com>
- David Precious <davidp@preshweb.co.uk>
- Doug Bell <madcityzen@gmail.com>
- Flávio Soibelmann Glock <fglock@gmail.com>
- Gianni Ceccarelli <gianni.ceccarelli@broadbean.com>
- Gregory Oschwald <oschwald@gmail.com>
- Hauke D <haukex@zero-g.net>
- Iain Truskett <deceased>
- James Raspass <jraspass@gmail.com>
( run in 1.102 second using v1.01-cache-2.11-cpan-39bf76dae61 )