Re: Module To Parse Format 'Friday, March 13, 2009 04:20 PM EST'
[email protected] (Maros Kollar)
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <[email protected]> |
> > Is there a ready-made DateTime::Format module to convert dates and times in the following format to DateTime objects? > > Friday, March 13, 2009 04:20 PM EST > > I'm an accidental programmer. I'm afraid to roll my own DateTime::Format::Foo module. > > Probably not, but if the format is fixed, writing a DT::Format::* module is a simple task (especially if you don't care too much about localization). For example take a look at DateTime::Format::W3CDTF which is a fine example for a simple DT::Format module. Otherwise you could use one of the generic modules like DateTime-Format-Strptime, DateTime-Format-Builder or DateTime-Format-CLDR. Cheers Maros