Time handling functions
[Runtime module API]


Defines

#define gl_localtime   (*callback->time.local_datetime)
 Convert a timestamp to a local date/time structure.
#define gl_mktime   (*callback->time.mkdatetime)
 Convert a timestamp to a date/time structure.
#define gl_parsetime   (*callback->time.convert_to_timestamp)
 Convert a string to a timestamp.
#define gl_strtime   (*callback->time.strdatetime)
 Convert a date/time structure to a string.
#define gl_todays   (*callback->time.timestamp_to_days)
 Convert a timestamp to days.
#define gl_tohours   (*callback->time.timestamp_to_hours)
 Convert a timestamp to hours.
#define gl_tominutes   (*callback->time.timestamp_to_minutes)
 Convert a timestamp to minutes.
#define gl_toseconds   (*callback->time.timestamp_to_seconds)
 Convert a timestamp to seconds.


Define Documentation

#define gl_localtime   (*callback->time.local_datetime)

Convert a timestamp to a local date/time structure.

See also:
local_datetime()

Definition at line 616 of file gridlabd.h.

Referenced by comm::sync(), climate::sync(), and house::sync_hvac_load().

#define gl_mktime   (*callback->time.mkdatetime)

Convert a timestamp to a date/time structure.

See also:
mkdatetime()

Definition at line 586 of file gridlabd.h.

Referenced by climate_module_test::test_tmy2().

#define gl_parsetime   (*callback->time.convert_to_timestamp)

Convert a string to a timestamp.

See also:
convert_to_timestamp()

Definition at line 581 of file gridlabd.h.

Referenced by residential_test::clotheswasher_test(), residential_test::house_test(), residential_test::lights_test(), residential_test::waterheater_test(), write_collector(), and write_recorder().

#define gl_strtime   (*callback->time.strdatetime)

Convert a date/time structure to a string.

See also:
strdatetime()

Definition at line 591 of file gridlabd.h.

Referenced by comm::sync().

#define gl_todays   (*callback->time.timestamp_to_days)

Convert a timestamp to days.

See also:
timestamp_to_days()

Definition at line 596 of file gridlabd.h.

#define gl_tohours   (*callback->time.timestamp_to_hours)

Convert a timestamp to hours.

See also:
timestamp_to_hours()

Definition at line 601 of file gridlabd.h.

Referenced by residential_test::clotheswasher_test(), residential_test::house_test(), residential_test::lights_test(), refrigerator::sync(), range::sync(), plugload::sync(), microwave::sync(), lights::sync(), house::sync(), dishwasher::sync(), clotheswasher::sync(), waterheater::thermostat(), and residential_test::waterheater_test().

#define gl_tominutes   (*callback->time.timestamp_to_minutes)

Convert a timestamp to minutes.

See also:
timestamp_to_minutes()

Definition at line 606 of file gridlabd.h.

#define gl_toseconds   (*callback->time.timestamp_to_seconds)

Convert a timestamp to seconds.

See also:
timestamp_to_seconds()

Definition at line 611 of file gridlabd.h.


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy