# phpman > info > Date::Manip

Date::[Manip(3pm)](https://www.chedong.com/phpMan.php/man/Manip/3pm/markdown)      User Contributed Perl Documentation     Date::[Manip(3pm)](https://www.chedong.com/phpMan.php/man/Manip/3pm/markdown)

NAME
       [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) - Date manipulation routines

DESCRIPTION
       [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) 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](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) 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](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown).

       [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) has functionality to work with several fundamental types of
       data.

       dates
           The word date is used extensively here and is somewhat misleading.
           In [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown), a date consists of three pieces of information: a
           calendar date (year, month, day), a time of day (hour, minute,
           second), and time zone information. Calendar dates and times are
           fully handled. Time zones are handled as well, but depending on how
           you use [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown), there may be some limitations as discussed
           below.

       delta
           A delta is an amount of time (i.e. the amount of time between two
           different dates).  Think of it as the duration of an event or the
           amount of time between two dates.

           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.

       recurrence
           A recurring event is something which occurs on a regular recurring
           basis.

       holidays and events
           Holidays and events are basically named dates or recurrences.

       Among other things, [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) allow you to:

       *   Enter a date in practically any format you choose.

       *   Compare two dates, entered in widely different formats to determine
           which is earlier.

       *   Extract any information you want from a date using a format string
           similar to the Unix date command.

       *   Determine the amount of time between two dates, or add an amount of
           time (a delta) to a date to get a second date.

       *   Work with dates using international formats (foreign month names,
           12/10/95 referring to October rather than December, etc.).

       *   Convert dates from one timezone to another.

       *   To find a list of dates where a recurring event happens.

       Each of these tasks is trivial (one or two lines at most) with this
       package.

HOW TO USE [DATE::MANIP](https://www.chedong.com/phpMan.php/perldoc/DATE%3A%3AMANIP/markdown)
       There are three different ways to use [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) .  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](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AInterfaces/markdown) document.  The recommended (and the only
       one with access to the full functionality of the module) is using the
       Object-Oriented interface.

SEE ALSO
       Because [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) performs so many operations, the documentation is
       extensive.  It includes the following documents:

   Information about the different interfaces
       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.

       [Date::Manip::Interfaces](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AInterfaces/markdown)
           A complete description of the functional interfaces available.
           NOTE: it is recommended that you use the OO interface wherever
           possible as the functional interfaces have some imitations.

   A description of the functional interfaces:
       [Date::Manip::DM5](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ADM5/markdown)
           The version 5 functional interface

       [Date::Manip::DM6](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ADM6/markdown)
           The version 6 functional interface

   Objects and configuration
       An introduction to the [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) classes used by the object-oriented
       interface and how to configure them:

       [Date::Manip::Objects](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AObjects/markdown)
           An overview of the various [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) modules, and how to use
           them.

       [Date::Manip::Config](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AConfig/markdown)
           Information for configuring [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown)

   [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) object-oriented modules
       These are the modules for using the object-oriented interface.

       [Date::Manip::Obj](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AObj/markdown)
           This is the base class.  All other classes listed here inherit the
           methods defined in this class.

       [Date::Manip::Base](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ABase/markdown)
           A module for doing low-level date operations.

       [Date::Manip::TZ](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ATZ/markdown)
           A module for working with time zones.

       [Date::Manip::Date](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ADate/markdown)
           The module for working with dates.

       [Date::Manip::Delta](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ADelta/markdown)
           The module for working with deltas (amount of time).

       [Date::Manip::Recur](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ARecur/markdown)
           The module for working with recurrences (recurring dates).

   Timezone information
       [Date::Manip::DM5abbrevs](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ADM5abbrevs/markdown)
           Time zone abbreviations used in the version 5 interface.

       [Date::Manip::Zones](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AZones/markdown)
           Time zone data included in [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) used in the version 6
           interfaces.

   Miscellaneous information:
       [Date::Manip::Calc](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ACalc/markdown)
           Detailed information on how date calculations are done.

       [Date::Manip::Holidays](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AHolidays/markdown)
           Information on defining and using holidays and events.

       [Date::Manip::ConfigFile](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AConfigFile/markdown)
           A sample config file.

       [Date::Manip::Lang](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang/markdown)
           Information about the languages supported by [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) and how to
           add a new language.

       [Date::Manip::Lang::english](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Aenglish/markdown)
       [Date::Manip::Lang::catalan](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Acatalan/markdown)
       [Date::Manip::Lang::danish](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Adanish/markdown)
       [Date::Manip::Lang::dutch](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Adutch/markdown)
       [Date::Manip::Lang::finnish](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Afinnish/markdown)
       [Date::Manip::Lang::french](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Afrench/markdown)
       [Date::Manip::Lang::german](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Agerman/markdown)
       [Date::Manip::Lang::italian](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Aitalian/markdown)
       [Date::Manip::Lang::norwegian](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Anorwegian/markdown)
       [Date::Manip::Lang::polish](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Apolish/markdown)
       [Date::Manip::Lang::portugue](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Aportugue/markdown)
       [Date::Manip::Lang::romanian](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Aromanian/markdown)
       [Date::Manip::Lang::russian](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Arussian/markdown)
       [Date::Manip::Lang::spanish](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Aspanish/markdown)
       [Date::Manip::Lang::swedish](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Aswedish/markdown)
       [Date::Manip::Lang::turkish](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3ALang%3A%3Aturkish/markdown)
           A description of the parseable words in each language currently
           supported by [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown).

   Information about the module and administrative things:
       [Date::Manip::Migration5to6](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AMigration5to6/markdown)
           Information on changes necessary to scripts when upgrading from
           5.xx to 6.xx.

       [Date::Manip::Changes5](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AChanges5/markdown)
           Change log for [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) 5.xx

       [Date::Manip::Changes5to6](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AChanges5to6/markdown)
           Differences between version 5.xx and 6.00 (including information on
           upgrading); this contains more details than the Migration5to6
           document.

       [Date::Manip::Changes6](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AChanges6/markdown)
           Change log for [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) 6.xx

       [Date::Manip::Misc](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AMisc/markdown)
           Miscellaneous information about [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) (who should use it;
           acknowledgments).

           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](https://www.chedong.com/phpMan.php/perldoc/DATE%3A%3AMANIP/markdown)" in [Date::Manip::Misc](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AMisc/markdown) 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](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) is the one to use.

       [Date::Manip::History](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AHistory/markdown)
           Musings on the history of [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown) written around it's 20th
           birthday.

       [Date::Manip::Problems](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AProblems/markdown)
           Common problems and instructions for reporting bugs.

       [Date::Manip::Examples](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip%3A%3AExamples/markdown)
           Examples of how to use [Date::Manip](https://www.chedong.com/phpMan.php/perldoc/Date%3A%3AManip/markdown).

LICENSE
       This script is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

AUTHOR
       Sullivan Beck (<sbeck@cpan.org>)

perl v5.32.1                      2021-11-20                  Date::[Manip(3pm)](https://www.chedong.com/phpMan.php/man/Manip/3pm/markdown)
