How To Get a Formatted Date in Perl
1 2 3 |
use POSIX qw(strftime); my $stamp = strftime "%Y%m%d%H%M%S", localtime; my $stamp = strftime "%Y%m%d%H%M%S", gmtime; |
1 2 3 |
use POSIX qw(strftime); my $stamp = strftime "%Y%m%d%H%M%S", localtime; my $stamp = strftime "%Y%m%d%H%M%S", gmtime; |
For a quick visual check to see what the human-readable date is based on a UNIX timestamp integer: php -r ‘print date(“r”,1483228799);’ php -r ‘print strtotime(“1 Jan 2015”) – 1;’
One of my website clients just won an award: www.uspcs.org! A total of 27 organizations entered into the second annual APS Chapter and Affiliates Web Site Competition in one of three classes–club/society, stamp show, or combination. All were judged in a variety of categories, including content, structure and navigation, visual design, functionality, and interoperability, with […]