On Friday, January 10, 2003, at 02:13  AM, Dave Rolsky wrote:

my $order_d = Date::ICal->new( epoch => time );
printf( '%04d/%02d/%02d', $order_d->year, $order_d->month, $order_d->day );
my $ship_d = $order_d + Date::ICal::Duration->new( days => 5 );
printf( '%04d/%02d/%02d', $ship_d->year, $ship_d->month, $ship_d->day );
One of the most important methods that Date::ICal is missing, IMO, and that we should grab from Time::Piece and put into the core, in my opinion, is strftime. I *love* that method!

my $t = localtime;
print $t->strftime("%Y/%m/%d");

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]



Reply via email to