[libcxx-commits] [PATCH] D113430: [libc++] Implement file_clock::{to, from}_sys
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 8 13:03:22 PST 2021
ldionne added inline comments.
================
Comment at: libcxx/include/chrono:2822
+ static chrono::sys_time<_Duration> to_sys(const chrono::file_time<_Duration>& __t) {
+ return chrono::sys_time<_Duration>(__t.time_since_epoch());
+ }
----------------
IIUC, both the `system_clock` and `file_clock` have the same Epochs (the Unix one) on all the platforms we support. So we shouldn't need to do any additional adjustment here AFAIU. Same for `from_sys`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113430/new/
https://reviews.llvm.org/D113430
More information about the libcxx-commits
mailing list