Answers for "time format"

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
0

time format

import time

named_tuple = time.localtime() # get struct_time
time_string = time.strftime("%m/%d/%Y, %H:%M:%S", named_tuple)

print(time_string)
Posted by: Guest on July-03-2021

Browse Popular Code Answers by Language