How to get UTC time in my program?
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Vini Lima
2022년 3월 25일
utc_time = datetime('now', 'timezone', 'utc')
댓글 수: 1
Charalambos Hadjipanayi
2023년 2월 1일
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.
카테고리
도움말 센터 및 File Exchange에서 Calendar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!