mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:18:12 +00:00
LibC: Implement time formatting functions, partially support timezone
Also fix a bug in mktime() caused by forgetting to check if the present year is a leap year.
This commit is contained in:
parent
425a2ca6ad
commit
ae233c1e82
2 changed files with 185 additions and 24 deletions
|
@ -43,7 +43,7 @@ struct tm {
|
|||
int tm_isdst; /* Daylight saving time */
|
||||
};
|
||||
|
||||
extern long timezone;
|
||||
extern long timezone; /* The difference in seconds between UTC and local time */
|
||||
extern long altzone;
|
||||
extern char* tzname[2];
|
||||
extern int daylight;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue