Simulink.DateTimeType
R2026bDescription
A Simulink.DateTimeType object specifies the time point, time
standard, and storage data type for a DateTime signal in a Simulink® model. Simulink blocks might use Simulink.DateTimeType objects to define output
DateTime data types.
Creation
Syntax
Description
DateTime = Simulink.DateTimeType returns a
Simulink.DateTimeType object with default property values.
DateTime = Simulink.DateTimeType(
returns a Name=Value)Simulink.DateTimeType object with property values specified by
one or more name-value arguments.
DateTime = Simulink.DateTimeType(
returns a datetimeTypeName)Simulink.DateTimeType object created from a compact type name
string. datetimeTypeName is a character vector of the form
'datetime_<timeUnit><epoch><timeStandard>_storageDataType'.
Construct the string by concatenating the time unit, epoch, and time standard (no
separators between them), bracketed by underscores separating the datetime prefix and the
storage data type suffix.
timeUnit is:
's'(seconds)'j'(days for Julian-based time points)
epoch is:
'u'(UNIX®)'n'(NTP)'t'(TAI)'j'(Julian)'m'(Modified Julian)'2'(J2000.0)
timeStandard is:
't'(TAI)'u'(UTC)'d'(TT)
storageDataType is:
'double''int32''uint32''sfix128_En64''ufix128_En64''sfix64_En32''ufix64_En32'
Input Arguments
Name-Value Arguments
Properties
Examples
Version History
Introduced in R2026b