Data Structures | |
| struct | GSM_DateTime |
| struct | GSM_DeltaTime |
Functions | |
| char * | DayOfWeek (unsigned int year, unsigned int month, unsigned int day) |
| void | GSM_GetCurrentDateTime (GSM_DateTime *Date) |
| time_t | Fill_Time_T (GSM_DateTime DT) |
| int | GSM_GetLocalTimezoneOffset (void) |
| void | Fill_GSM_DateTime (GSM_DateTime *Date, time_t timet) |
| char * | OSDateTime (GSM_DateTime dt, bool TimeZone) |
| char * | OSDate (GSM_DateTime dt) |
| bool | CheckDate (GSM_DateTime *date) |
| bool | CheckTime (GSM_DateTime *date) |
| bool CheckDate | ( | GSM_DateTime * | date | ) |
Checks whether date is valid. This does not check time, see CheckTime for this.
| date | Structure where to check date. |
| bool CheckTime | ( | GSM_DateTime * | date | ) |
Checks whether time is valid. This does not check date, see CheckDate for this.
| date | Structure where to check time. |
| char* DayOfWeek | ( | unsigned int | year, | |
| unsigned int | month, | |||
| unsigned int | day | |||
| ) |
Returns string for current day of week.
| year | Year. | |
| month | Month. | |
| day | Day. |
| void Fill_GSM_DateTime | ( | GSM_DateTime * | Date, | |
| time_t | timet | |||
| ) |
Converts time_t to gammu GSM_DateTime structure.
| Date | Storage for date. | |
| timet | Input date. |
| time_t Fill_Time_T | ( | GSM_DateTime | DT | ) |
| void GSM_GetCurrentDateTime | ( | GSM_DateTime * | Date | ) |
Returns current timestamp.
| Date | Storage for date time structure. |
| int GSM_GetLocalTimezoneOffset | ( | void | ) |
Returns the local timezone offset in seconds. For example 7200 for CEST.
| char* OSDate | ( | GSM_DateTime | dt | ) |
Converts date from timestamp to string according to OS settings.
| dt | Input timestamp. |
| char* OSDateTime | ( | GSM_DateTime | dt, | |
| bool | TimeZone | |||
| ) |
Converts timestamp to string according to OS settings.
| dt | Input timestamp. | |
| TimeZone | Whether to include time zone. |
1.5.6