Public Methods | |
void | Time_decode (struct Time *ptr_time, time_t time) |
time_t | Time_encode (struct Time *ptr_time) |
bool | Time_set_RTC (struct Time *ptr_time) |
bool | Time_get_RTC (struct Time *ptr_time) |
int | Time_get_weekday (struct Time *ptr_time) |
int | Time_clear_alarm_flag (void) |
bool | Time_enable_alarm_int (bool enable) |
clock_t | clock (void) |
time_t | time (void) |
time_t | get_trusted_time (void) |
Public Attributes | |
char | year |
char | month |
char | day |
char | hour |
char | minute |
char | second |
char | hundreds |
A time manipulation structure.
|
Resets the alarm flag.
|
|
Decodes 'time' and fill fields.
|
|
Sets or resets the alarm flag.
|
|
Packs fields into the time_t type.
|
|
Sets the fields according to the values read from the Real Time Clock (RTC).
|
|
Calculates the weekday for the current date (Sunday is 0, Saturday is 6).
|
|
Sets the Real Time Clock (RTC) according to its fields.
|
|
Day of month, 1..31. |
|
Hour, 0..23. |
|
Hundredths of a second, 0..99. |
|
Minute, 0..59. |
|
Month, 1..12. |
|
Second, 0..59. |
|
Year - 1900, 99 means 1999. |
Copyright © 2001 Cybiko, Inc. All rights reserved. | More information... |