How to get UTC time in my program?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Vini Lima
el 25 de Mzo. de 2022
utc_time = datetime('now', 'timezone', 'utc')
1 comentario
Charalambos Hadjipanayi
el 1 de Feb. de 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.
Categorías
Más información sobre Calendar en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!