in reply to Way to calculate day-of-the-week
Hello.
There is a great module (meta-module) called Task::Kensho, that groups tried things that people use for common purposes under one umbrella. Look at the Dates section for modules related to Dates.
I would recommend DateTime, with the following usage (from module synopsis):
use DateTime; $dt = DateTime->new( year => 1964, month => 10, day => 16, ); $dow = $dt->day_of_week; # 1-7 (Monday is 1)
- Luke
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Way to calculate day-of-the-week
by BillKSmith (Monsignor) on Dec 24, 2014 at 13:44 UTC | |
by blindluke (Hermit) on Dec 24, 2014 at 21:29 UTC | |
by Your Mother (Archbishop) on Dec 25, 2014 at 01:43 UTC | |
by blindluke (Hermit) on Dec 25, 2014 at 10:59 UTC |