I have a timestamp created with date(1) as date --rfc-3339=ns
. It looks like "2019-12-06 13:02:21.711339765+05:30". What is the canonical way to parse it with strptime()
if strptime()
does not support nanoseconds?
PS. The tag "c" is because Python uses C runtime strptime(3) function - they have the same API, so your answer may be relevant for both languages