[libc-commits] [PATCH] D140521: [libc] Introduces localtime to LLVM libc, based on C99/C2X/Single Unix Sp.

Raman Tenneti via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Dec 21 17:35:09 PST 2022


rtenneti created this revision.
rtenneti added reviewers: sivachandra, jeffbailey.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
rtenneti requested review of this revision.

This change doesn't handle TIMEZONE, tm_isdst and leap seconds.

localtime and gmtime share the same common code. They call update_from_seconds.
Thus added only validation tests for localtime.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140521

Files:
  libc/config/linux/aarch64/entrypoints.txt
  libc/config/linux/x86_64/entrypoints.txt
  libc/docs/date_and_time.rst
  libc/spec/stdc.td
  libc/src/time/CMakeLists.txt
  libc/src/time/localtime.cpp
  libc/src/time/localtime.h
  libc/src/time/time_utils.h
  libc/test/src/time/CMakeLists.txt
  libc/test/src/time/localtime_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140521.484723.patch
Type: text/x-patch
Size: 7972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221222/18391e6b/attachment.bin>


More information about the libc-commits mailing list