One way:
#! perl -slw use strict; sub lastSunday { my $now = time; $now -= 43200 while scalar localtime($now) !~ m[Sun]; return $now; } print scalar localtime( lastSunday() );
In reply to Re: Is there an easy way to get the start date of the current week?
by BrowserUk
in thread Is there an easy way to get the start date of the current week?
by ramjamman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |