|
gwenhywfar
5.11.2beta
|
#include <gwenhywfar/testframework.h>#include <inttypes.h>#include <time.h>
Go to the source code of this file.
Typedefs | |
| typedef struct GWEN_TIMESTAMP | GWEN_TIMESTAMP |
| typedef struct GWEN_TIMESTAMP GWEN_TIMESTAMP |
Definition at line 36 of file timestamp.h.
| GWENHYWFAR_API int GWEN_Timestamp_AddTests | ( | GWEN_TEST_MODULE * | mod | ) |
| GWENHYWFAR_API int GWEN_Timestamp_Compare | ( | const GWEN_TIMESTAMP * | tstamp1, |
| const GWEN_TIMESTAMP * | tstamp0 | ||
| ) |
Definition at line 297 of file timestamp.c.
References GWEN_Timestamp_toInt64().

| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_dup | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 66 of file timestamp.c.
References GWEN_NEW_OBJECT, and NULL.
| GWENHYWFAR_API void GWEN_Timestamp_free | ( | GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 80 of file timestamp.c.
References GWEN_FREE_OBJECT.
| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_fromDb | ( | GWEN_DB_NODE * | db | ) |
Definition at line 458 of file timestamp.c.
References DBG_INFO, DBG_VERBOUS, GWEN_DB_GetCharValue(), GWEN_LOGDOMAIN, GWEN_Timestamp_fromString(), and NULL.

| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_fromGmTime | ( | time_t | ti | ) |
Definition at line 152 of file timestamp.c.
References GWEN_Timestamp_fromStructTm().

| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_fromInt64 | ( | int64_t | i | ) |
Definition at line 111 of file timestamp.c.
References GWEN_NEW_OBJECT, GWEN_Timestamp_SetJulianDate(), and NULL.

| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_fromLocalTime | ( | time_t | ti | ) |
Definition at line 145 of file timestamp.c.
References GWEN_Timestamp_fromStructTm().

| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_fromString | ( | const char * | s | ) |
Definition at line 397 of file timestamp.c.
References DBG_INFO, GWEN_LOGDOMAIN, GWEN_Timestamp_new(), and NULL.
Referenced by GWEN_Timestamp_fromDb().


| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_fromStructTm | ( | const struct tm * | ltm | ) |
Definition at line 130 of file timestamp.c.
References GWEN_Timestamp_new(), and NULL.
Referenced by GWEN_Timestamp_fromGmTime(), GWEN_Timestamp_fromLocalTime(), GWEN_Timestamp_NowInGmTime(), and GWEN_Timestamp_NowInLocalTime().


| GWENHYWFAR_API int GWEN_Timestamp_GetDay | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 269 of file timestamp.c.
| GWENHYWFAR_API int GWEN_Timestamp_GetHour | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 276 of file timestamp.c.
| GWENHYWFAR_API int GWEN_Timestamp_GetMinute | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 283 of file timestamp.c.
| GWENHYWFAR_API int GWEN_Timestamp_GetMonth | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 262 of file timestamp.c.
| GWENHYWFAR_API int GWEN_Timestamp_GetSecond | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 290 of file timestamp.c.
| GWENHYWFAR_API const char* GWEN_Timestamp_GetString | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 89 of file timestamp.c.
Referenced by GWEN_Timestamp_toDb().

| GWENHYWFAR_API int GWEN_Timestamp_GetYear | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 255 of file timestamp.c.
| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_new | ( | int | year, |
| int | month, | ||
| int | day, | ||
| int | hour, | ||
| int | minute, | ||
| int | second | ||
| ) |
Definition at line 54 of file timestamp.c.
References GWEN_NEW_OBJECT, GWEN_Timestamp_SetDateAndTime(), and NULL.
Referenced by GWEN_Timestamp_fromString(), and GWEN_Timestamp_fromStructTm().


| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_NowInGmTime | ( | void | ) |
Definition at line 196 of file timestamp.c.
References GWEN_Timestamp_fromStructTm(), and NULL.

| GWENHYWFAR_API GWEN_TIMESTAMP* GWEN_Timestamp_NowInLocalTime | ( | void | ) |
Definition at line 186 of file timestamp.c.
References GWEN_Timestamp_fromStructTm(), and NULL.

| GWENHYWFAR_API void GWEN_Timestamp_SetDate | ( | GWEN_TIMESTAMP * | tstamp, |
| int | year, | ||
| int | month, | ||
| int | day | ||
| ) |
Definition at line 217 of file timestamp.c.
References _setDate(), and _writeAsString().

| GWENHYWFAR_API void GWEN_Timestamp_SetDateAndTime | ( | GWEN_TIMESTAMP * | tstamp, |
| int | year, | ||
| int | month, | ||
| int | day, | ||
| int | hour, | ||
| int | minute, | ||
| int | second | ||
| ) |
Definition at line 206 of file timestamp.c.
References _setDate(), _setTime(), and _writeAsString().
Referenced by GWEN_Timestamp_new().


| GWENHYWFAR_API void GWEN_Timestamp_SetJulianDate | ( | GWEN_TIMESTAMP * | tstamp, |
| int | julian | ||
| ) |
Definition at line 225 of file timestamp.c.
References _writeAsString().
Referenced by GWEN_Timestamp_fromInt64().


| GWENHYWFAR_API void GWEN_Timestamp_SetTime | ( | GWEN_TIMESTAMP * | tstamp, |
| int | hour, | ||
| int | minute, | ||
| int | second | ||
| ) |
Definition at line 247 of file timestamp.c.
References _setTime(), and _writeAsString().

| GWENHYWFAR_API int GWEN_Timestamp_toDb | ( | const GWEN_TIMESTAMP * | tstamp, |
| GWEN_DB_NODE * | db | ||
| ) |
Definition at line 447 of file timestamp.c.
References GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), and GWEN_Timestamp_GetString().

| GWENHYWFAR_API int64_t GWEN_Timestamp_toInt64 | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Transform the given timestamp into a 64 bit value only to be used by GWEN_Timestamp_fromInt64(). No assumptions should be made about how this value is calculated.
Definition at line 96 of file timestamp.c.
Referenced by GWEN_Timestamp_Compare().

| GWENHYWFAR_API time_t GWEN_Timestamp_toTimeT | ( | const GWEN_TIMESTAMP * | tstamp | ) |
Definition at line 159 of file timestamp.c.
References NULL.
1.8.14