/ Published in: Perl

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#Method 1 perl -e '@T=localtime(time-86400);printf("%2d/%2d/%4d\n",$T[4]+1,$T[3],$T[5]+1900)' #Method 2 perl -e 'use POSIX;print POSIX::strftime("%m/$d/%Y\n",localtime(time-86400))'
Comments
