print gmtime nicely


/ Published in: Perl
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.