summaryrefslogtreecommitdiffstats
path: root/time.c
AgeCommit message (Collapse)Author
2022-03-12Don't shadow standard headersTavian Barnes
@italic on the AUR stated that bfs from the AUR fails to build on Manjaro. From the build log, it seems like <time.h> doesn't get included properly. I assume it's picking up ./time.h instead. I couldn't reproduce the build issue in the default configuration, but it does fail with EXTRA_CFLAGS="-I." which isn't good. So rename everything with an x prefix to stop clashing. Link: https://aur.archlinux.org/packages/bfs#comment-856102 Link: https://paste.rs/eqR
2020-10-01time: Don't call tzset() on every x{local,gm}time()Tavian Barnes
It turns out tzset() checks /etc/localtime every time you call it.
2020-02-13time: Implement xtimegm() without mktime()Tavian Barnes
Using setenv("TZ") is ugly and adds unnecessary failure paths.
2020-02-13time: Split out time-related functions from utilTavian Barnes