Help for this page

Select Code to Download


  1. or download this
    # --------------------------------------------------------------------
    +-
    # Get the current date and time in epoch seconds.
    # --------------------------------------------------------------------
    +-
    ...
    my $cfg{time_offset} = shift;
            return time + 3600 * $cfg{time_offset};
    }
    
  2. or download this
    # --------------------------------------------------------------------
    +-
    # Format date output.
    ...
    
            return $formatted_date;
    }
    
  3. or download this
    # --------------------------------------------------------------------
    +-
    # Calculate difference between two dates.
    # --------------------------------------------------------------------
    +-
    ...
    
            return $result;
    }