<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:12pt"><div>Thanks, that's what I am looking for.<br><br></div><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Andrew Rodland &lt;arodland@comcast.net&gt;<br><b><span style="font-weight: bold;">To:</span></b> Chicago.pm chatter &lt;chicago-talk@pm.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, January 14, 2009 9:57:52 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Chicago-talk] Calculate Date on SunOS<br></font><br>
On Wednesday 14 January 2009 09:49:55 pm tiger peng wrote:<br>&gt; Actually, I only want something as simple as GNU's date command:<br>&gt;<br>&gt; -&gt; date --date=yesterday +%Y%m%d<br>&gt; 20090113<br>&gt; -&gt; date --date="next week" +%Y%m%d<br>&gt; 20090121<br>&gt;<br><br>$ perl -MPOSIX=strftime -le 'print strftime "%Y%m%d",localtime (time - 86400)'<br>20090113<br>$ perl -MPOSIX=strftime -le 'print strftime "%Y%m%d",localtime (time+7*86400)'<br>20090121<br><br>Andrew<br>_______________________________________________<br>Chicago-talk mailing list<br><a ymailto="mailto:Chicago-talk@pm.org" href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br></div></div></div></body></html>