DateTime Clock
R2026bOutput current simulation calendar date and time as DateTime data
type
Since R2026b
Libraries:
Simulink /
DateTime
Description
The DateTime Clock block outputs the current simulation calendar date and time as
DateTime data type. Specify characteristics such as time point, storage
data type, and time standard.
Use these other DateTime blocks to interact with the DateTime Clock
block.
| Description | Block |
|---|---|
Convert time points, storage data types, or time points and storage data
types, of | |
Convert between | |
Convert | |
Output | |
Extract value of | |
Convert |
Time Standards
Collectively, the DateTime blocks support these time
standards:
International Atomic Time (TAI) — Atomic time based on the International System of Units (SI) second computed and reported by scientific laboratories. TAI has no leap seconds.
Coordinated Universal Time (UTC) — Atomic time computed by subtracting a particular number of leap seconds from TAI. Leap seconds keep UTC as close to Universal Time as possible while still ticking at the rate specified by TAI.
Terrestrial Time (TT) — Time standard that astronomers use to tag measurements taken at the Earth surface. TT is 32.184 seconds ahead of TAI.
Examples
Ports
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/DateTime/DateTime Clock"
Example: add_block("simulink/DateTime/DateTime Clock","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Extended Capabilities
Version History
Introduced in R2026b
See Also
Blocks
- DateTime Data Type Converter | DateTime Time Standard Converter | DateTime to Calendar Time | DateTime to Formatted String | From DateTime | To DateTime

