There's more than one way to do things | |
PerlMonks |
Re: DateTime::Format::Strptime Parsing Seems to have a Problem?by thanos1983 (Parson) |
on Apr 04, 2019 at 15:14 UTC ( [id://1232151]=note: print w/replies, xml ) | Need Help?? |
Hello ozboomer, It looks that fellow Monks have already answered your question. Just for fun here is an alternative solution using Date::Manip.
On the solution provided above I have two different functions. One is simply converting the time from the local timezone getDate (read more Date::Manip::TZ) and the other is converting from the timezone provided to the function getDateFormat (read more for timezone Date::Manip::Zones). The first function unfortunately it returns the date already formatted so there the format is fixed. The second it returns to your desired format. Hope this helps, BR.
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|