in reply to Re^2: Baffled by DateTime
in thread Baffled by DateTime
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Baffled by DateTime
by haukex (Archbishop) on Mar 31, 2023 at 15:35 UTC | |
|
Re^4: Baffled by DateTime
by hippo (Archbishop) on Mar 31, 2023 at 15:35 UTC | |
by BernieC (Pilgrim) on Mar 31, 2023 at 17:53 UTC | |
by pryrt (Abbot) on Mar 31, 2023 at 18:10 UTC |