Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Comparing time strings from a list of HH:MM:SS timesby slugger415 (Monk) |
on Aug 10, 2022 at 18:38 UTC ( [id://11146084]=perlquestion: print w/replies, xml ) | Need Help?? |
slugger415 has asked for the wisdom of the Perl Monks concerning the following question: Hello esteemed PerlMonks, I have a list of time strings in the HH:MM:SS format. I want to add each to a variable set with localtime and compare it to a timestamp later in the script. I'm having trouble understanding how to add that HH:MM:SS string to the localtime variable.
The $diff part works but not the addition of $t, how do I add that time to it? Obviously I need to convert it to something Time::Piece understands. Thank you.
Back to
Seekers of Perl Wisdom
|
|