#include <clock.h>
#include <date.h>
|
char | days_in_month [] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } |
|
char * | month_names [] |
|
char * | weekday_names [] |
|
char * | tz_names [] |
|
void convertDate |
( |
struct time * |
t, |
|
|
uint |
seconds |
|
) |
| |
Convert seconds (since 1900) to a more clear time structure.
- Parameters
-
time | time structure |
seconds | seconds since 1900 |
uint get_datetime |
( |
void |
| ) |
|
Get the system date time.
- Returns
- current system date time
void printDate |
( |
uint |
dt | ) |
|
Print the current date and time based on the system timezone.
- Parameters
-
dt | date time (seconds since Jan. 1, 1900) |
void printDateTZ |
( |
uint |
dt, |
|
|
char |
timezone |
|
) |
| |
Print the current date and time based on passed timezone.
- Parameters
-
dt | date time (seconds since Jan. 1, 1900) |
timezone | timezone offset in hours |
uint set_datetime |
( |
uint |
dt | ) |
|
Set the system date time.
- Parameters
-
dt | current date time (in seconds since Jan. 1, 1900) |
- Returns
- current system date time
Initial value:= { "January", "February", "March", "April",
"May", "June", "July", "August",
"September", "October", "November", "December"
}
Initial value:= {
"", "", "", "", "", "",
"", "", "", "", "", "",
"", "", "H", "AK", "P", "M",
"C", "E", "A", "", "", ""
}
Initial value:= { "Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"
}