[ Home ] [ Support ] [ Documentation ] [ Systems ]

NAME

Date::DateCalcLib - Date Calculations Library

Library of useful date calculation functions


SYNOPSIS


DESCRIPTION

This module expands the functionality of the ``Date::DateCalc'' module (see DateCalc(3) for more details), which is intended to be a rather basic set of tools, with functions for various special tasks like:

For a detailed description of each function, see below:

- Parse today's date:

    ($year,$mm,$dd) = parse_date(`/bin/date`);

- Parse date of submission of an e-mail:

    while (<MAIL>)
    {
        if (/^From \S/)
        {
            ($year,$mm,$dd) = parse_date($_);
            ...
        }
        ...
    }

The function returns an empty list if it can't extract a valid date from the input string.

* Easter Sunday - 48

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),-48);

    Carnival Monday / Rosenmontag / Veille du Mardi Gras

* Easter Sunday - 47

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),-47);

    Mardi Gras / Faschingsdienstag, Karnevalsdienstag / Mardi Gras

* Easter Sunday - 46

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),-46);

    Ash Wednesday / Aschermittwoch / Mercredi des Cendres

* Easter Sunday - 7

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),-7);

    Palm Sunday / Palmsonntag / Dimanche des Rameaux

* Easter Sunday - 2

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),-2);

    Easter Friday / Karfreitag / Vendredi Saint

* Easter Sunday - 1

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),-1);

    Easter Saturday / Ostersamstag / Samedi de Paques

* Easter Sunday + 1

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),1);

    Easter Monday / Ostermontag / Lundi de Paques

* Easter Sunday + 39

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),39);

    Ascension of Christ / Christi Himmelfahrt / Ascension

* Easter Sunday + 49

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),49);

    Whitsunday / Pfingstsonntag / Dimanche de Pentecote

* Easter Sunday + 50

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),50);

    Whitmonday / Pfingstmontag / Lundi de Pentecote

* Easter Sunday + 60

    ($year,$mm,$dd) = calc_new_date(easter_sunday($year),60);

    Feast of Corpus Christi / Fronleichnam / Fete-Dieu

For more information about easter sunday and how to calculate it, see also on USENET in news.answers

    Calendar FAQ, v. 1.6 (modified 26 Dec 1996) Part 1/3
    Calendar FAQ, v. 1.6 (modified 26 Dec 1996) Part 2/3
    Calendar FAQ, v. 1.6 (modified 26 Dec 1996) Part 3/3

or

    http://www.math.uio.no/faq/calendars/faq.html

or

    http://www.pip.dknet.dk/~pip10160/calendar.html

All authored by

    Claus Tondering <c-t@pip.dknet.dk>


SEE ALSO

Date::DateCalc(3)


VERSION

This man page documents Date::DateCalcLib version 1.0.


AUTHOR

Steffen Beyer


COPYRIGHT

Copyright (c) 1997 by Steffen Beyer. All rights reserved.


LICENSE AGREEMENT

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