Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    print "postdate parsed: ",ParseDate($postdate),"\n";
    my $timestamp = '14th August 2017, 21:07';
    print "string parsed: ",ParseDate($timestamp),"\n";
    
  2. or download this
    postdate: 14th August 2017, 21:07
    postdate parsed: 
    string parsed: 2017081421:07:00