When requesting json response from snaphot the json returns a formated timestamp which is ok but i want to filter snapshot records and thus will have to parse this back to epoch time. If restic stored/returned an additional epoc time field/key that would be great. Formated times can change which would break a parser but not epoch time which is just a number. In general I never store formatted timestamps as they can always be generated from epoch timestamp field in whatever the end user desires.
Hmm, that’s a good point – though it makes me wonder if that would be better handled as a bug report / feature request against jq, as I can’t imagine that others haven’t run into this same issue with jq. Having jq support the full ISO 8601 standard would (IMO) be more useful to more people than having restic output timestamps in a second format.
Edit: Looks like there is an open request… from 2015