aboutsummaryrefslogtreecommitdiff
path: root/lib/libcxx/src/typeinfo.cpp
diff options
context:
space:
mode:
authorJonathan Marler <johnnymarler@gmail.com>2021-09-14 10:02:23 -0600
committerGitHub <noreply@github.com>2021-09-14 19:02:23 +0300
commit010ca698642673e859f5f39a2f84829a995775f0 (patch)
treeba88a3e668dfa755b4a9735209fc8dd62e71f647 /lib/libcxx/src/typeinfo.cpp
parent85f065a5115b201b7b6b0b7325a4626211bbb642 (diff)
downloadzig-010ca698642673e859f5f39a2f84829a995775f0.tar.gz
zig-010ca698642673e859f5f39a2f84829a995775f0.zip
add functions to decode an epoch timestamp (#9040)
* add functions to decode an epoch timestamp The code added here is alternative to the libc gmtime function. This function takes a unix epoch timestamp and decodes it into things like the year/day/time/etc. I looked at various libc implementations to see how it was implemented and this appears to be correct. I reorganized it so that applications can choose which data they need rather than calcualting it all in a single function. The data structures layout the order of operations required to decode various things like the year/month or time of day. * set Month.jan to 1 instead of 0 to avoid +1 in conversion to numeric * add another test * remove unnecessary comptimeMod
Diffstat (limited to 'lib/libcxx/src/typeinfo.cpp')
0 files changed, 0 insertions, 0 deletions