Return to Snippet

Revision: 19157
at October 16, 2009 18:34 by kitzelh


Initial Code
#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))'

Initial URL

                                

Initial Description

                                

Initial Title
Yesterday in Perl

Initial Tags

                                

Initial Language
Perl