I have date time strings in the format 2017-01-12T17:23:14.000-0800
In Perl, is there any easy way to parse two dates like these and find the difference without individually extracting all the fields in the string?
For example given 2017-01-12T17:23:14.000-0800
and 2017-01-13T17:23:14.000-0800
, the difference I want would be 1 day (any reasonable format for this output is okay).