Perl: the Markov chain saw | |
PerlMonks |
date and time differenceby invisiblehand (Initiate) |
on Jan 08, 2020 at 13:50 UTC ( [id://11111180]=perlquestion: print w/replies, xml ) | Need Help?? |
invisiblehand has asked for the wisdom of the Perl Monks concerning the following question: (perl version 5.8.7) I have two date strings and and try to calculate date and time difference between two dates and times. But the difference looks incorrect, could you help me to get the correct value? notBefore=Nov 23 22:31:12 2019 GMT notAfter=Mar 19 06:52:23 2020 GMT
===output===== SD0101START Nov 23 22 31 12 2019 GMT Mar 19 06 52 23 2020 GMT 1579384343 1548250272 diff_time :31134071:360.348043981481: ========rax.txt=========== SD0101START notBefore=Nov 23 22:31:12 2019 GMT notAfter=Mar 19 06:52:23 2020 GMT SD0101END SD0201START notBefore=Nov 24 11:11:11 2019 GMT notAfter=Mar 19 06:52:23 2020 GMT SD0201END
Back to
Seekers of Perl Wisdom
|
|