[Chicago-talk] Calculate Date on SunOS
tigerpeng2001 at yahoo.com
Wed Jan 14 19:49:55 PST 2009
Actually, I only want something as simple as GNU's date command:
-> date --date=yesterday +%Y%m%d
-> date --date="next week" +%Y%m%d
From: Andrew Rodland <arodland at comcast.net>
To: Chicago.pm chatter <chicago-talk at pm.org>
Sent: Wednesday, January 14, 2009 9:36:06 PM
Subject: Re: [Chicago-talk] Calculate Date on SunOS
On Wednesday 14 January 2009 09:30:21 pm tiger peng wrote:
> Is there any easy way to calculate the date on SouOS 5.10? It's date
> command does not take date string.
> There is only core Perl installed on the box so I cannot use Data::Calc.
> Thanks in advance,
1) You can do plenty of date calculation with core perl if you can work
localtime and you're handy with arithmetic (and a little bit of modular
2) If you have a working C compiler you can install Date::Calc in your home
directory. If you don't, I bet you can find some pure-perl module that does
what you need.
Chicago-talk mailing list
Chicago-talk at pm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chicago-talk