summaryrefslogtreecommitdiff
path: root/Libraries/LibC/time.h
AgeCommit message (Collapse)Author
2020-08-21LibC: Add timegm()Nico Weber
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.
2020-06-08LibC: Add nanosleep() wrapper around clock_nanosleep(CLOCK_REALTIME)Andreas Kling
Gets rid of one dropbear patch. :^)
2020-03-19LibC: Add new syscall to allow changing the system dateLiav A
2020-03-19Kernel & LibC: Add CLOCK_REALTIME constantLiav A
2020-03-06LibC: Implement time formatting functions, partially support timezonehowar6hill
Also fix a bug in mktime() caused by forgetting to check if the present year is a leap year.
2020-01-27Kernel+LibC+Userland: Switch to 64-bit time_tAndreas Kling
Let's not have that 2038 problem people are talking about. :^)
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-11-11LibC, LibM: Add functions needed to compile python3Emanuel Sprung
2019-11-02Kernel+LibC: Implement clock_gettime() and clock_nanosleep()Andreas Kling
Only the CLOCK_MONOTONIC clock is supported at the moment, and it only has millisecond precision. :^)
2019-07-04Libraries: Create top level directory for libraries.Andreas Kling
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.