Block that outputs minute, hour, day of the month, month, year and weekday.
The implementation only supports date computations from year 2010 up to and including 2020. Daylight saving and time zones are not supported.
The user must define which time and date correspond to time = 0
using the model parameters zerTim
, and, if
zerTim == CDL.Types.ZeroTime.Custom
,
the parameter yearRef
.
The user can choose from new year, midnight for a number of years:
2010 to 2020 and also 1970.
The latter corresponds to a unix stamp of 0.
Note that when choosing the reference time equal to 0 at 1970,
the actual simulation time must be within the 2010-2020 range.
For example, startTime = 1262304000
corresponds
to the simulation starting on the 1st of January 2010 local time
when setting zerTim = CDL.Types.ZeroTime.UnixTimeStamp
.
This is within the 2010-2020 range and is therefore allowed.
lastYear
as the underlying implementation allows
for 21 years.
Modelica.Units.SI
.time
is better explained
and unix time stamps are correctly defined with respect to GMT.
(see #1192).