DateTime Clock
Output current simulation calendar date and time as DateTime data
type
Since R2024b
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 | DateTime Data Type Converter |
Convert between | DateTime Time Standard Converter |
Convert | DateTime to Calendar Time |
Extract value of | DateTime to Epoch Time |
Convert epoch time to | Epoch Time to DateTime |
Convert | DateTime to Formatted String |
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.
Barycentric Dynamical Time (TDB ) — Time standard that astronomers use to tag planetary ephemerides (positional data).
Limitations
The DateTime blocks are available only as an internal feature with
early access. Their design is subject to change.
Ports
Output
Parameters
Version History
Introduced in R2024b