I´m getting both "last-modified" (file last change timestamp) and "date" (now) headers from a GET() http request. I use collectHeaders() and I can get the values ok.
They are both in what I think is UTC format (strings):
last-modified: Sun, 04 Dec 2022 21:21:07 GMT
date: Sun, 04 Dec 2022 20:35:22 GMT
I need to perform some calculations and comparison, converting those strings to something "simpler". If converting these strings to datetime objects is not feasible, a string formatted as "YYYYMMDDhhmmss" would do the trick.
Is there any library to convert UTC to a more "usable" format that does not require parsing the string -including converting from "JanFeb...Dec" to "0102...12" ?