local_time_to_utc

Convert local time to UTC

您现在正在关注此提交

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. 检索时间: .

致谢

启发作品: skychart

类别

Help CenterMATLAB Answers 中查找有关 Dates and Time 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0