core/timestamp.h File Reference


Detailed Description

Id
timestamp.h 1182 2008-12-22 22:08:36Z dchassin
Copyright (C) 2008 Battelle Memorial Institute

Definition in file timestamp.h.

Go to the source code of this file.

Typedefs

typedef struct s_datetime DATETIME
 the s_datetime structure

Functions

int convert_from_timestamp (TIMESTAMP ts, char *buffer, int size)
 Convert from a timestamp to a string.
TIMESTAMP convert_to_timestamp (char *value)
 Convert from a string to a timestamp.
int local_datetime (TIMESTAMP ts, DATETIME *dt)
 Converts a GMT timestamp to local datetime struct Adjusts to TZ if possible.
int local_tzoffset (TIMESTAMP t)
 Calculate the current TZ offset in seconds.
TIMESTAMP mkdatetime (DATETIME *dt)
 Convert a datetime struct into a GMT timestamp.
int strdatetime (DATETIME *t, char *buffer, int size)
 Convert a datetime struct to a string.
char * timestamp_current_timezone (void)
 Read the current timezone specification.
char * timestamp_set_tz (char *tz_name)
 Establish the default timezone for time conversion.
int timestamp_test (void)
 Test the daylight saving time calculations.


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