modelClock
Computation of hour and day assuming 'time' equals the epoch time stamp and without daylight savings
Information
This component uses a slightly different convention than IDEAS.Utilities.Time.CalendarTime.
I.e. the unix time stamp is assumed to be for the GMT timezone,
while weather data files typically assume that the local time zone is used.
Therefore, only use this model if you know what you are doing.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | timZon | 0 | Time zone |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.RealExpression | hourExp | Hour computation | |
| Modelica.Blocks.Interfaces.RealOutput | hour | Hour of the day | |
| Modelica.Blocks.Sources.RealExpression | weekDayExp | Day computation, monday=1, sunday=7 | |
| Modelica.Blocks.Interfaces.RealOutput | weekDay | Day of the week, monday=1, sunday=7 |
Revisions
-
April 12, 2021, by Filip Jorissen:
First implementation.