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