Returns string for current day of week.
Parameters:
- year -
Year.
- month -
Month.
- day -
Day.
Return: Pointer to static buffer containing day of week string.
Returns current timestamp.
Parameters:
- Date -
Storage for date time structure.
Converts GSM_DateTime to time_t.
Parameters:
- DT -
Input timestamp.
Return: time_t value.
Returns the local timezone offset in seconds. For example 7200 for CEST.
Return: Timezone offset seconds.
Converts time_t to gammu GSM_DateTime structure.
Parameters:
- Date -
Storage for date.
- timet -
Input date.
Converts string (seconds since epoch) to gammu GSM_DateTime structure.
Parameters:
- Date -
Storage for date.
- str -
Input date.
Converts timestamp to string according to OS settings.
Parameters:
- dt -
Input timestamp.
- TimeZone -
Whether to include time zone.
Return: Pointer to static buffer containing string.
Converts date from timestamp to string according to OS settings.
Parameters:
- dt -
Input timestamp.
Return: Pointer to static buffer containing string.
Checks whether date is valid. This does not check time, see CheckTime for this.
Parameters:
- date -
Structure where to check date.
Return: True if date is correct.
Checks whether time is valid. This does not check date, see CheckDate for this.
Parameters:
- date -
Structure where to check time.
Return: True if time is correct.
Reads date and time from phone.
Parameters:
- s -
State machine pointer.
- date_time -
Storage for date.
Return: Error code
Sets date and time in phone.
Parameters:
- s -
State machine pointer.
- date_time -
Date to set.
Return: Error code
Structure used for saving date and time
Public Membersint Timezone
The difference between local time and GMT in seconds
int Second
Seconds.
int Minute
Minutes.
int Hour
Hours.
int Day
Days.
int Month
January = 1, February = 2, etc.
int Year
Complete year number. Not 03, but 2003
Structure used for saving relative date and time
Public Membersint Timezone
The difference of timezones in seconds
int Second
Seconds diff.
int Minute
Minutes diff.
int Hour
Hours diff.
int Day
Days diff.
int Month
Months diff.
int Year
Years diff.