Get UTC Time, Convert a UTC time to Datenum (both Win32/Linux versions)

版本 1.0.0.0 (13.4 KB) 作者: Nicolas BERCHER
Get a UTC time using standard C time function, convert UTC time to MATLAB serial date ...
2.9K 次下载
更新时间 2006/6/20

查看许可证

UTC time (universal time convention) is used in ANSI-C standard for defining time. This is measured in seconds since 1970, at the Prime Meridian. By definition, there is no adjustment in this number for Daylight Savings time. the UTC_TIME function uses a C-MEX function to get the System Time in UTC format.

Another function UTC2DATENUM will convert any UTC time to the correct MATLAB serial date number. This is done with the help of the C-function gmtime. Because this function should properly handle daylight savings time adjustments going from UTC to the local time used by the MATLAB serial date number.

This package just brings a Linux compatibility.

引用格式

Nicolas BERCHER (2024). Get UTC Time, Convert a UTC time to Datenum (both Win32/Linux versions) (https://www.mathworks.com/matlabcentral/fileexchange/11469-get-utc-time-convert-a-utc-time-to-datenum-both-win32-linux-versions), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14SP1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0