blockLocalCivilTime

Converts the clock time to local civil time.

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

This component converts the clock time to local civil time. The parameter timZon represents the time zone of the facility (relative to Greenwich Mean Time or the 0th meridian). Time zones west of GMT (e.g. North America) are represented as negative; east of GMT as positive. Fraction of hours are represented in decimals (e.g. for 6:30, use 6.5).

The formula is based on Michael Wetter's thesis (A4.1):

  locTim = greTim + (lon*180/pi)*86400/360 = cloTim - timZon + lon*43200/pi

Parameters

TypeNameDefaultDescription
Modelica.SIunits.TimetimZonTime zone
Modelica.SIunits.AnglelonLongitude

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputcloTimClock time
Modelica.Blocks.Interfaces.RealOutputlocTimLocal civil time

Revisions

  • November 14, 2015, by Michael Wetter:
    Introduced diff.
  • February 27, 2011, by Wangda Zuo:
    First implementation.