Hauptinhalt

DateTime Time Standard Converter

Convert between DateTime time standards

Since R2024b

  • DateTime Time Standard Converter block icon

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.

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

  • TAI to TDB

  • UTC to TAI

  • UTC to TT

  • UTC to TDB

  • TT to TAI

  • TT to UTC

  • TT to TDB

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 | TAI to TDB | UTC to TDB | TT to TDB

Select whether to use the leap second table during conversion.

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: UseLeapSecondTable
Values: off (default) | on

Specify the accumulated leap seconds as a nonnegative scalar integer between 0 and 16,056, inclusive. If you do not want to specify a leap second table, specify the accumulated leap seconds until the current simulation time. This setting assumes no further leap seconds occur.

Dependencies

To enable this parameter, clear the Use leap second table parameter.

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: AccumulatedLeapSeconds
Values: 27 (default) | nonnegative scalar integer between 0 and 16,056, inclusive

Specify the leap second table entries as an N-by-3 array of integers. In each row:

  • First entry is a year.

  • Second entry is 1 if a positive leap second occurs on June 30 of that year, -1 if a negative leap second occurs on that day, and 0 otherwise.

  • Second entry is 1 if a positive leap second occurs on December 31 of that year, -1 if a negative leap second occurs on that day, and 0 otherwise.

Dependencies

To enable this parameter, select the Use leap second table parameter.

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: LeapSecondTable
Values: [1972, 1, 1; 1973, 0, 1; 1974, 0, 1; 1975, 0, 1; 1976, 0, 1; 1977, 0, 1; 1978, 0, 1; 1979, 0, 1; 1981, 1, 0; 1982, 1, 0; 1983, 1, 0; 1985, 1, 0; 1987, 0, 1; 1989, 0, 1; 1990, 0, 1; 1992, 1, 0; 1993, 1, 0; 1994, 1, 0; 1995, 0, 1; 1997, 1, 0; 1998, 0, 1; 2005, 0, 1; 2008, 0, 1; 2012, 1, 0; 2015, 1, 0; 2016, 0, 1] (default) | -1 | N-by-3 array of integers

Version History

Introduced in R2024b