jaldhar has asked for the wisdom of the Perl Monks concerning the following question:
I'm using the excellent Time::Piece module and it is working well for me except for one thing. I need to parse an RFC 822 style Date with strptime. What I want is something like:
but apparently %z is a GNUism and not supported by the module. So is there an alternate format string I can use instead? Or if worst comes to worst, is there another module that can convert an RFC 822 date into a comparable quantity?$date = Time::Piece->strptime($msg->date, "%a, %d %b %Y %H:%M:%S %z");
--
જલધર
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to Parse an RFC 822 style date with Time::Piece?
by Aristotle (Chancellor) on Feb 19, 2003 at 21:29 UTC | |
Re: How to Parse an RFC 822 style date with Time::Piece?
by steves (Curate) on Feb 19, 2003 at 21:53 UTC | |
by Aristotle (Chancellor) on Feb 19, 2003 at 22:41 UTC | |
by iguanodon (Priest) on Feb 20, 2003 at 02:53 UTC | |
by Aristotle (Chancellor) on Feb 20, 2003 at 07:38 UTC | |
Re: How to Parse an RFC 822 style date with Time::Piece?
by jaldhar (Vicar) on Feb 24, 2003 at 05:35 UTC |
Back to
Seekers of Perl Wisdom