See the following example:
import datetime
now = datetime.datetime.now()
now.strftime('%Y-%m-%dT%H:%M:%S') + ('-%02d' % (now.microsecond / 10000))
This could result in the following:
‘2017-09-20T11:52:32-98’
See the following example:
import datetime
now = datetime.datetime.now()
now.strftime('%Y-%m-%dT%H:%M:%S') + ('-%02d' % (now.microsecond / 10000))
This could result in the following:
‘2017-09-20T11:52:32-98’