Returns string for current day of week.
Parameters: |
|
---|---|
Return: | Pointer to static buffer containing day of week string. |
Returns current timestamp.
Parameters: |
|
---|
Converts GSM_DateTime to time_t.
Parameters: |
|
---|---|
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: |
|
---|
Converts string (seconds since epoch) to gammu GSM_DateTime structure.
Parameters: |
|
---|
Converts timestamp to string according to OS settings.
Parameters: |
|
---|---|
Return: | Pointer to static buffer containing string. |
Converts date from timestamp to string according to OS settings.
Parameters: |
|
---|---|
Return: | Pointer to static buffer containing string. |
Checks whether date is valid. This does not check time, see CheckTime for this.
Parameters: |
|
---|---|
Return: | True if date is correct. |
Checks whether time is valid. This does not check date, see CheckDate for this.
Parameters: |
|
---|---|
Return: | True if time is correct. |
Reads date and time from phone.
Parameters: |
|
---|---|
Return: | Error code |
Sets date and time in phone.
Parameters: |
|
---|---|
Return: | Error code |
struct GSM_DateTime
Structure used for saving date and time
Public Members
- int 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
struct GSM_DeltaTime
Structure used for saving relative date and time
Public Members
- int 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.