Post by h***@gmail.comIs there any particular reason for using ISO8601 in this grabber?
Because this is pretty much the first Perl program I have ever written
and I didn't know anything about parsing dates in perl? The SD JSON
data uses ISO8601 date formats so I probably googled "perl ISO8601"
and DataTime::Format::ISO8601 was the first hit that seemed like the
right thing to do.
DateTime::Format::ISO8601 has a lot more (compile-time)
dependencies than DateTime::Format::DateParse and is therefore
harder to install on older machines. :-(
If you don't need the extra power of ISO8601 then wouldn't
DateParse do the job?
I don't even know what extra power the DateTime::Format::ISO8601
module has compared to DateTime::Format::DateParse. Looking at the
docs very quickly didn't really clue me in either.
I tried replacing the three occurrences of
"DateTime::Format::ISO8601->parse_datetime" with
"DateTime::Format::DateParse->parse_datetime". This caused the
previously-shown date to be off in some cases. I assume this could
probably be fixed without too much effort.
What do others think? Would it be better to use
DateTime::Format::DateParse if possible?
dependency is a good idea. If your test caused previously-shown to
shift, it's probably a timezone issue.. storing the Gacenote provided
a timezone. Hopefully, you can just treat it as a date.. if not, pick