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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)