in reply to Re^2: The date last monday
in thread The date last monday
perl -e 'printf qq{%4d%02d%02d\n},map{$_->[0]+1900,$_->[1]+1,$_->[2]}[ +((localtime(time-((1-(localtime(time))[6])* -86400)))[5,4,3])];'
Note that the slice is passed into the map as an anonymus list.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: The date last monday
by Scarborough (Hermit) on Oct 03, 2006 at 11:56 UTC | |
|
Re^4: The date last monday
by davorg (Chancellor) on Oct 03, 2006 at 11:54 UTC | |
by johngg (Canon) on Oct 03, 2006 at 13:09 UTC |