mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 06:06:06 +00:00

The number of days should be rounded down, for both positive and negative times since epoch. The original code truncated, which is correct for positive values, but wrong for negative values. Depends on D138826 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D154865