<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013683" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013683</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Cheers</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-date-modification#comment-1079201</link>
    <description> &lt;p&gt;Thanks to you both for the help. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 10 Mar 2001 21:00:34 +0000</pubDate>
 <dc:creator>ronniec</dc:creator>
 <guid isPermaLink="false">comment 1079201 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Time Formatting</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-date-modification#comment-1079192</link>
    <description> &lt;p&gt;You can get the arguments of &lt;strong&gt;localtime()&lt;/strong&gt; or &lt;strong&gt;gmtime()&lt;/strong&gt; in a list (as the documentation states) and play with them as you need.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;my ($min,$hour,$day,$mon,$year) = (localtime)[1..5];&lt;br /&gt; &lt;br /&gt;my $datestr = sprintf &amp;quot;%02d/%02d/%02d, %02d:%02d&amp;quot;, $day, $mon+1, $year % 100, $hour, $min;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;You can also use the POSIX &lt;strong&gt;strftime&lt;/strong&gt; function:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;use POSIX &amp;#039;strftime&amp;#039;;&lt;br /&gt;my $datestr = strftime(&amp;#039;%d/%m/%y, %R&amp;#039;, localtime);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Perl should be doing it for your specific time zone when you use &lt;strong&gt;localtime()&lt;/strong&gt;.&lt;/p&gt;
 </description>
     <pubDate>Sat, 10 Mar 2001 14:26:37 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1079192 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-date-modification#comment-1079152</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime(time);&lt;br /&gt;$year = substr($year,1);&amp;nbsp;&amp;nbsp; #make $year two digit&lt;br /&gt;$the_date = &amp;quot;$mon/$mday/$year, $hour:$min&amp;quot;;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
interesting links:&lt;br /&gt;
&lt;a href=&quot;http://www.perl.com/pub/doc/manual/html/pod/perlfunc/gmtime.html&quot; class=&quot;bb-url&quot;&gt;http://www.perl.com/pub/doc/manual/html/pod/perlfunc/gmtime.html&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Mar 2001 22:39:59 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1079152 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
