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

TypeNameDefaultDescription
Modelica.Units.SI.TimetimZon0Time zone

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.RealExpressionhourExpHour computation
Modelica.Blocks.Interfaces.RealOutputhourHour of the day
Modelica.Blocks.Sources.RealExpressionweekDayExpDay computation, monday=1, sunday=7
Modelica.Blocks.Interfaces.RealOutputweekDayDay of the week, monday=1, sunday=7

Revisions

  • April 12, 2021, by Filip Jorissen:
    First implementation.