I am using Perl for the first time and I need to do the following:
Parse two separate timestamp strings which are in the format
YYYY/mm/dd HH:MM:SS:NNNNNN
. The timezone of both strings is assumed to be EST. For example, both strings are:"2018/03/24 12:11:57:123456" "2018/03/26 13:10:57:123456"
Convert the timezone of the above two into a different timezone, say GMT, then print them out.
Find the differences, in hours, of the above two timestamps.
Is it possible to achieve the above with the Time::Piece module? I have looked through this web site:
https://www.perl.com/article/59/2014/1/10/Solve-almost-any-datetime-need-with-Time--Piece/
It shows me how to achieve my first objective, the parsing. But so far I am not able to find out how to convert from one timezone to another, and also the difference in hours between two timestamps.
Thanks.