Help for this page

Select Code to Download


  1. or download this
    # Set your timezone to America/New_York before running.
    # In this time zone, DST ends on Nov 2, 2008 at 2:00 AM.
    ...
    use POSIX;
    print( strftime( "%m-%d\n", localtime( (24*60*60) * $_ + $time ) ) )
       for 1..30;
    
  2. or download this
    10-29
    10-30
    ...
    11-25
    11-26
           > 11-27 never seen
    
  3. or download this
    use Time::Local qw( timegm );
    use POSIX qw( strftime );
    my $date = timegm(localtime);
    $date += 24*60*60;
    print(strftime("%Y%m%d\n", gmtime($date)));