Posted By

alfirth on 05/04/11


Tagged

time gmtime


Versions (?)

print gmtime nicely


 / Published in: Perl
 

  1. use POSIX qw(strftime);
  2. my $now_string = strftime "%a %b %e %H:%M:%S %Y", gmtime;
  3. print $now_string . ' GMT';

Report this snippet  

You need to login to post a comment.