<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: date code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 08 Aug 2008 18:46:48 GMT</pubDate>
    <description>DZone Snippets: date code</description>
    <item>
      <title>Simple output of date in perl</title>
      <link>http://snippets.dzone.com/posts/show/4506</link>
      <description>// Simple output of current date in perl&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;  my @day_name = ("Sun.","Mon.","Tue.","Wed.","Thu.","Fri.","Sat.");&lt;br /&gt;  my ($sec,$min,$hour,$mday,$mon,$year,$wday); &lt;br /&gt;  ($sec,$min,$hour,$mday,$mon,$year,$wday,undef,undef)=localtime(time()); $year+=1900;$mon++;&lt;br /&gt;  $report_date=sprintf("%s %04d.%02d.%02d %02d:%02d",$day_name[$wday],$year,$mon,$mday,$hour,$min);&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 07 Sep 2007 07:55:52 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4506</guid>
      <author>bouffon69 (Sylvain Le Courtois)</author>
    </item>
  </channel>
</rss>
