Answers for "utc time format"

1

datetime utcnow

from datetime import datetime

datetime.utcnow()
Posted by: Guest on November-11-2020
0

Datetime to utc format

string foo = yourDateTime.ToUniversalTime()
                         .ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'");
Posted by: Guest on April-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language