This function converts local time to UTC via Java methods. It is therefore portable to Matlab on any platform. It can take as argument either a vector of datenums or a vector of datevecs (ie, local_time_to_utc(now) or local_time_to_utc([2008 01 01 00 00 00])). It formats the returned time as a Matlab date/time string with a post-pended 'Z' to indicate UTC.
引用格式
Peter Tenenbaum (2026). local_time_to_utc (https://ww2.mathworks.cn/matlabcentral/fileexchange/22295-local_time_to_utc), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2007a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Dates and Time 的更多信息
标签
致谢
启发作品: skychart
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 |
