man > Date::Manip

📖 NAME

Date::Manip — đŸ—“ī¸ Date manipulation routines

🚀 Quick Reference

Use CaseCommandDescription
đŸ“Ĩ Parse a dateDate::Manip::Date->new("2023-10-01")Enter a date in practically any format
âš–ī¸ Compare two dates$d1->cmp($d2)Determine which date is earlier
🔍 Extract date info$date->printf("%Y-%m-%d")Extract information using a format string
âŗ Calculate duration$d1->calc($d2)Determine the amount of time between two dates
➕ Add duration$d1->calc($delta)Add an amount of time (delta) to a date
🌐 International parsingDate::Manip::Date->new("12/10/95")Work with international date formats
🌍 Timezone conversion$date->convert(tz=>"UTC")Convert dates from one timezone to another
🔁 Recurring eventsDate::Manip::Recur->new(...)Find a list of dates where a recurring event happens

📝 DESCRIPTION

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.

📅 dates

The word date is used extensively here and is somewhat misleading. In Date::Manip, 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, 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 allow you to:

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

💡 HOW TO USE DATE::MANIP

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.

📚 SEE ALSO

Because Date::Manip performs so many operations, the documentation is extensive. It includes the following documents:

đŸ–Ĩī¸ Information about the different interfaces

âš™ī¸ A description of the functional interfaces

🧩 Objects and configuration

đŸ“Ļ Date::Manip object-oriented modules

🌍 Timezone information

📄 Miscellaneous information

â„šī¸ Information about the module and administrative things

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.

📜 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 AT cpan.org)

Date::Manip
📖 NAME 🚀 Quick Reference 📝 DESCRIPTION
📅 dates âŗ delta 🔄 recurrence 🎉 holidays and events
💡 HOW TO USE DATE::MANIP 📚 SEE ALSO
đŸ–Ĩī¸ Information about the different interfaces âš™ī¸ A description of the functional interfaces 🧩 Objects and configuration đŸ“Ļ Date::Manip object-oriented modules 🌍 Timezone information 📄 Miscellaneous information â„šī¸ Information about the module and administrative things
📜 LICENSE 👤 AUTHOR

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-21 03:31 @216.73.216.45
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^