Util.pm: add new parse_any_date function
commite7d00333ba7a7d327b7666b7aa85c8c8fee6a983
authorKyle J. McKay <mackyle@gmail.com>
Tue, 23 Jul 2013 22:13:02 +0000 (23 15:13 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 23 Jul 2013 22:13:02 +0000 (23 15:13 -0700)
tree90d63f955bfc0174b85232411406bc4c10e81b4b
parentd663759fcb08018fb745026df716b1af1bcafdfa
Util.pm: add new parse_any_date function

Three formats are currently supported:
  1. RFC 2822 (uses parse_rfc2822_date)
  2. RFC 3339 / ISO 8601 (a bit relaxed)
  3. Unix timestamp with optional +/- offset

In addition, the parsed time zone offset in seconds
is returned for use by the caller if the second
argument is a SCALAR ref.
Girocco/Util.pm