[Israel.pm] Date manipulations

Meir Guttman meir at guttman.co.il
Sun Dec 30 01:29:31 PST 2012


use Date::Calc;


-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf
Of Yona Shlomo
Sent: יום א 30 דצמבר 2012 09:09
To: perl at perl.org.il
Subject: [Israel.pm] Date manipulations

Hello,

I have date items of the form yyyy-mm-dd and I'd like to be able to
manipulate them in the following ways:

Given such a date I'd like to ask ordinal questions such as:
what was the date k days before (e.g., what is the date
yesterday) or what will be the date n days from that date (e.g., what's the
date 10 days later).

What's a practical way to go about this?

Thanks.

--
Shlomo Yona
yona at cs.technion.ac.il
http://yeda.cs.technion.ac.il/~yona/
_______________________________________________
Perl mailing list
Perl at perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2637/5496 - Release Date: 12/29/12



More information about the Perl mailing list