Contenuto principale

DateTime Time Standard Converter

Convert between DateTime time standards

Since R2024b

  • DateTime Time Standard Converter block icon

Libraries:
Simulink / DateTime

Description

The DateTime Time Standard Converter block converts a DateTime signal between time standard formats.

Limitations

The DateTime blocks are available only as an internal feature with early access. Their design is subject to change.

Ports

Input

expand all

DateTime signal to be converted, specified as a scalar.

If the Account for new leap seconds after simulation start parameter of the DateTime Clock is cleared, do not use the output from that block as the input for the DateTime Time Standard Converter block.

Output

expand all

Converted DateTime signal in new time standard, returned as a scalar DateTime signal.

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

Specify the time standard conversion:

  • TAI to UTC

  • TAI to TT

  • UTC to TAI

  • UTC to TT

  • TT to TAI

  • TT to UTC

Programmatic Use

To set the block parameter value programmatically, use the set_param function.

To get the block parameter value programmatically, use the get_param function.

Parameter: TimeStandardConversion
Values: TAI to UTC (default) | TAI to TT | UTC to TAI | UTC to TT | TT to TAI | TT to UTC

Version History

Introduced in R2024b