The docs say: "Returns the day of the week as a number, from 1..7, with 1 being Monday and 7 being Sunday." But today is Friday...looks like it is "with 1 being Sunday" This is not a big deal, but am I missing something?perl -E "use DateTime ;my $now = DateTime->now(time_zone => \"EST5EDT\ +") ; my $day = $now->local_day_of_week ; say \"day of the week: $day\ +" ; " --------------------- day of the week: 6
In reply to Re^3: Baffled by DateTime
by BernieC
in thread Baffled by DateTime
by BernieC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |