I looked through all the possible questions, but could not find the answer, so can Perl experts help me with this?
I have two timestamps like 05/25/2011 05:22:03 PM and 05/25/2011 05:34:08 PM . They are stored in string form.
my $str1 = '05/25/2011 05:22:03'; my $str2 = '05/25/2011 05:34:08';
The last is the end time of the assignment, and the first is the start time.
How to find out the difference in dates and time? In this case, the dates are the same, but they may differ.
source share