1
Fork 0
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:
howar6hill 2020-03-05 19:30:24 +08:00 committed by Andreas Kling
parent 425a2ca6ad
commit ae233c1e82
2 changed files with 185 additions and 24 deletions

View file

@ -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;