0

I need to format date/time with a correct time zone and using this format string: %Y-%m-%dT%H:%M:%S. However, it's using local time. How can I make it format time including time zone, or using UTC time?

user626528
  • 13,999
  • 30
  • 78
  • 146

1 Answers1

0

You can add the timezone with %Z or %z.

strftime can only generate local time.

b0ti
  • 2,319
  • 1
  • 18
  • 18