Dear all,
I have the following UTC time format in a string variable and want to import it to Stata with this code:
I get this result:
Why are the seconds incorrect?
Thank you,
Max
I have the following UTC time format in a string variable and want to import it to Stata with this code:
Code:
clear input str25 python_time float "2020-06-01 T 13:07:04 UTC" "2020-06-01 T 13:07:06 UTC" end generate stata_time = Clock(python_time, "YMD#hms#",2020) format stata_time %tC
Code:
python_time stata_time 2020-06-01 T 13:07:04 UTC 01jun2020 13:07:49 2020-06-01 T 13:07:06 UTC 01jun2020 13:07:49
Thank you,
Max
Comment