How to get UTC time in my program?
Ältere Kommentare anzeigen
Dear All,
I am wondering if it is pissible to get the UTC time in my program. Do I need the internet avaibale if I want to get UTC time?
Thanks a lot.
Benson
Akzeptierte Antwort
Weitere Antworten (1)
Vini Lima
am 25 Mär. 2022
utc_time = datetime('now', 'timezone', 'utc')
1 Kommentar
Charalambos Hadjipanayi
am 1 Feb. 2023
This just converts your local computer time to UTC. So if your local computer time is incorrect for any reason, the utc_time will be also incorrect.
Kategorien
Mehr zu Calendar finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!