On Fri, 12 Aug 2005 23:11:16 -0700, Eko Budiharto wrote:
> I have a question is there anyway that I can the date of sunday from
> this week and last week? I just confuse how to do it. I usually use
> time::format and time::local; For example, aug 13 is saturday it means
> aug 14 is sun and sunday last week is aug 7. how do I do the
> calculation?
>
> I am looking forward to a favorable reply from you.Thank you.
% date
Sat Aug 13 04:48:49 PDT 2005
% perl -MDate::Manip -le 'print ParseDate("Sunday")' 2005081400:00:00
% perl -MDate::Manip -le 'print ParseDate("last Sunday")' 2005080700:00:00
--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs