Date::Manip(3pm) | User Contributed Perl Documentation | Date::Manip(3pm) |
Date::Manip - Date manipulation routines
Date::Manip is a series of modules designed to make any common date/time operation easy to do. Operations such as comparing two times, determining a date a given amount of time from another, or parsing international times are all easily done. It deals with time as it is used in the Gregorian calendar (the one currently in use) with full support for time changes due to daylight saving time.
From the very beginning, the main focus of Date::Manip has been to be able to do ANY desired date/time operation easily. Many other modules exist which may do a subset of these operations quicker or more efficiently, but no other module can do all of the operations available in Date::Manip.
Date::Manip has functionality to work with several fundamental types of data.
A delta refers only to an amount of time. It includes no information about a starting or ending date/time. Most people will think of a delta as an amount of time, but the term 'time' is already used so much in this module that I didn't want to use it here in order to avoid confusion.
Among other things, Date::Manip allow you to:
Each of these tasks is trivial (one or two lines at most) with this package.
There are three different ways to use Date::Manip . There are three interfaces (version 5 functional interface, version 6 functional, and version 6 object-oriented). A complete description of each is included in the Date::Manip::Interfaces document. The recommended (and the only one with access to the full functionality of the module) is using the Object-Oriented interface.
Because Date::Manip performs so many operations, the documentation is extensive. It includes the following documents:
Read this for a detailed description of each of the interfaces, including information on how to choose and use the interface best suited to your situation.
An introduction to the Date::Manip classes used by the object-oriented interface and how to configure them:
These are the modules for using the object-oriented interface.
Since many other date/time modules exist, some of which may do the specific operation(s) you need faster, be sure to read "SHOULD I USE DATE::MANIP" in Date::Manip::Misc before deciding which of the Date and Time modules from CPAN is for you. However, if you want one module to do it all, Date::Manip is the one to use.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Sullivan Beck (sbeck@cpan.org)
2023-03-05 | perl v5.36.0 |