This change doesn't handle TIMEZONE, tm_isdst and leap seconds.
Moved shared code between mktime and gmtime into time_utils.cpp.
Paths
| Differential D98467
This introduces gmtime to LLVM libc, based on C99/C2X/Single Unix Spec. ClosedPublic Authored by rtenneti on Mar 11 2021, 4:18 PM.
Details Summary This change doesn't handle TIMEZONE, tm_isdst and leap seconds. Moved shared code between mktime and gmtime into time_utils.cpp.
Diff Detail
Event TimelineComment Actions Couple of questions inline. Feel free to submit after answering/addressing them.
This revision is now accepted and ready to land.Mar 16 2021, 12:10 AM
Comment Actions Thanks Siva for the comments. PTAL.
This revision was landed with ongoing or failed builds.Mar 16 2021, 4:45 PM Closed by commit rGeaae52c1fd45: This introduces gmtime to LLVM libc, based on C99/C2X/Single Unix Spec. (authored by rtenneti). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 331133 libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/time/CMakeLists.txtlibc/src/time/gmtime.h
libc/src/time/gmtime.cpp
libc/src/time/mktime.cpp
libc/src/time/time_utils.h
libc/src/time/time_utils.cpp
libc/test/src/time/CMakeLists.txt
libc/test/src/time/gmtime_test.cpp
libc/test/src/time/mktime_test.cpp
|
Why do we need standalone_cpp?