NAME

Date::ISO - Perl extension for converting dates between ISO and Gregorian formats.

SYNOPSIS

use Date::ISO;
($yearnumber, $weeknumber, $weekday) = iso($year, $month, $day);

DESCRIPTION

Convert dates between ISO and Gregorian formats.

iso

($year, $week, $day) = iso($year, $month, $day);

Returns the ISO year, week and day, when given the year, month, and day, as returned by localtime. (That is, months are zero-based, years are -1900.)

AUTHOR

Rich Bowen <rbowen@rcbowen.com>

Additional comments

Please don't trust this API to stay the same. I think it will, but I'm not sure yet. Especially, I'd like comments about whether the month value should be zero-based, or 1 based. That is, should January be 0 or 1?

For more information about this calendar, please see:

http://personal.ecu.edu/mccartyr/ISOwdALG.txt

http://personal.ecu.edu/mccartyr/isowdcal.html