At 10:11 PM 3/20/02 -0600, rory oconnor wrote:
>Can anyone think of a good way for me to find out what the date of last
>sunday is with perl?  I'm writing a script that will need to do some
>basic reporting starting from the previous sunday.
>
>I'm usign the date format YYYY-MM-DD

$ perl -MDate::Manip -le 'print UnixDate("last Sunday","%Y-%m-%d")'
2002-03-17

--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to