主要内容

DateTime

R2026b
输出和转换仿真日期和时间的模块,例如 DateTime Clock 和 DateTime Data Type Converter

使用 DateTime 库中的模块在特定的日历日期和时间对模型进行仿真。DateTime Clock 模块使用 datetime 数据类型输出当前仿真日期和时间,支持的模块在时间点、存储数据类型、时间标准(TAI、UTC、TT)和字符串格式之间进行转换。

DateTime 信号使用 MATLAB datetime 对象。

要将此库中的模块添加到您的模型,请参阅向模型添加模块。

模块

DateTime Clock block iconDateTime ClockOutput current simulation calendar date and time as DateTime data type (自 R2026b 起)
DateTime Data Type Converter block iconDateTime Data Type ConverterConvert time points or storage data types of DateTime signal (自 R2026b 起)
DateTime Time Standard Converter block iconDateTime Time Standard ConverterConvert between DateTime time standards (自 R2026b 起)
DateTime to Calendar Time block iconDateTime to Calendar TimeConvert DateTime signal to calendar time format (自 R2026b 起)
DateTime to Formatted String block iconDateTime to Formatted StringConvert DateTime signal data type to formatted string (自 R2026b 起)
From DateTime block iconFrom DateTimeExtract value of DateTime input signal (自 R2026b 起)
To DateTime block iconTo DateTimeOutput DateTime signal (自 R2026b 起)

工具

库浏览器查找并向模型添加模块

主题