|
| void | InitDate (TDate *date, unsigned long year, uint8_t month, uint8_t day) |
| | Initialize TDate structure.
|
| |
| void | InitTime (TTime *time, uint8_t hour, uint8_t min, uint8_t sec, unsigned long millisec) |
| | Initialize TTime structure.
|
| |
| TDateTimeSettings * | RamDateTimeSettings (void) |
| | Get date and time settings from the phone.
|
| |
| char * | RamIsAutoTimeEnabled (void) |
| | Get the address of the "Auto Time" enabled flag.
|
| |
| void | GetDateTime (TDate *date, TTime *time) |
| | Get current date and time.
|
| |
| int | GetTimeZoneShift (const TDate *date, const TTime *time, int timezone_id) |
| | Get current timezone shift.
|
| |
| char | GetWeek (const TDate *date) |
| | Get day of week for a date.
|
| |
| int | GetDays (const TDate *date) |
| | Get the days count.
|
| |
| int | IsLeapYear (const TDate *date) |
| | Check date for leap year.
|
| |
| int | GetDaysFromMonth (const TDate *date) |
| | Get the days count in the month.
|
| |
| int | GetSecondsFromDateTime (uint32_t *seconds, const TDate *date, const TTime *time, const TDate *epoch) |
| | Convert date and time to seconds.
|
| |
| int | GetSecondsFromDateTimeSince1997 (uint32_t *seconds, const TDate *date, const TTime *time) |
| | Convert date and time to seconds (since 1997-01-01 00:00:00).
|
| |
| int | GetSecondsFromTime (const TTime *time) |
| | Calculate seconds from TTime.
|
| |
| void | GetTimeFromSeconds (TTime *time, uint32_t seconds) |
| | Convert seconds to TTime.
|
| |
| void | GetTimeFromMilliseconds (TTime *time, uint32_t milliseconds) |
| | Convert milliseconds to TTime.
|
| |
| int | GetDateTimeFromSeconds (const uint32_t *seconds, TDate *date, TTime *time, const TDate *epoch) |
| | Convert seconds to date and time.
|
| |
| int | GetDateTimeFromSecondsSince1997 (const uint32_t *seconds, TDate *date, TTime *time) |
| | Convert seconds to date and time (since 1997-01-01 00:00:00).
|
| |
| int | CmpDates (const TDate *date1, const TDate *date2) |
| | Compare two dates.
|
| |
| int | CmpTimes (const TTime *time1, const TTime *time2) |
| | Compare two timestamps.
|
| |
| void | GetDate_ws (WSHDR *ws, const TDate *date, unsigned int unk) |
| | Put date into ws string.
|
| |
| void | GetTime_ws (WSHDR *ws, const TTime *time, unsigned int unk) |
| | Put time into ws string.
|
| |
| void | DateAddDays (TDate *date, int days) |
| | Add or subtract days from a date.
|
| |
| void | DateAddMonths (TDate *date, int months) |
| | Add or subtract months from a date.
|
| |
| void | DateAddYears (TDate *date, int years) |
| | Add or subtract years from a date.
|
| |
| TZ * | RamTimeZones (void) |
| | Get array of time zones.
|
| |
| int | GetCurrentTimeZone (void) |
| | Get current time zone id.
|
| |
| int | GetTimeZoneByGMT (const char *gmt) |
| | Get time zone id by time zone.
|
| |
| int | IsSummerTime (int time_zone) |
| | Check time zone for summer time.
|
| |
| void | SetTimeZone (int time_zone) |
| | Set time zone.
|
| |