mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:57:35 +00:00
LibC: Add timegm()
timegm() is like mktime() in that it converts a struct tm to a timestamp, but it treats the struct tm as UTC instead of as local time. timegm() is nonstandard, but availabe in both Linux and BSD, and it's a useful function to have.
This commit is contained in:
parent
cf8ce839da
commit
459e4ace93
2 changed files with 13 additions and 2 deletions
|
@ -54,6 +54,7 @@ typedef int64_t time_t;
|
|||
struct tm* localtime(const time_t*);
|
||||
struct tm* gmtime(const time_t*);
|
||||
time_t mktime(struct tm*);
|
||||
time_t timegm(struct tm*);
|
||||
time_t time(time_t*);
|
||||
char* ctime(const time_t*);
|
||||
void tzset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue