getutc(timezone)
Version 1.1.0.0 (1.23 KB) by
junziyang
Retrieve the current UTC time and convert it to a MATLAB datenum.
This function can get the current Coordinated Universal Time from the time server "http://time.is/UTC" and returns it as a serial date number (datenum). The user can specify the time zone.
Cite As
junziyang (2024). getutc(timezone) (https://www.mathworks.com/matlabcentral/fileexchange/53999-getutc-timezone), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Dates and Time in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Get UTC Time, Convert a UTC time to Datenum (both Win32/Linux versions)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.