DateTime Time Standard Converter
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
DateTime signal to be converted, specified as a scalar.
Output
Converted DateTime signal in new time standard, returned as a
scalar DateTime signal.
Parameters
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 UTCTAI to TTTAI to TDBUTC to TAIUTC to TTUTC to TDBTT to TAITT to UTCTT 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 |
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
1if a positive leap second occurs on June 30 of that year,-1if a negative leap second occurs on that day, and0otherwise.Second entry is
1if a positive leap second occurs on December 31 of that year,-1if a negative leap second occurs on that day, and0otherwise.
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
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)