Lines Matching +full:milli +full:- +full:seconds
1 //===- Support/Chrono.cpp - Utilities for Timing Manipulation ---*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 #include "llvm/Config/llvm-config.h"
21 const char llvm::detail::unit<std::milli>::value[] = "ms";
63 char Buffer[sizeof("YYYY-MM-DD HH:MM:SS")];
64 strftime(Buffer, sizeof(Buffer), "%Y-%m-%d %H:%M:%S", <);
67 long((TP.time_since_epoch() % std::chrono::seconds(1))
76 if (Style.empty()) Style = "%Y-%m-%d %H:%M:%S.%N";
106 OS << (Len ? Buffer : "BAD-DATE-FORMAT");
109 void format_provider<UtcTime<std::chrono::seconds>>::format(
110 const UtcTime<std::chrono::seconds> &T, raw_ostream &OS, StringRef Style) {
112 UtcTime<seconds> Truncated =
113 UtcTime<seconds>(duration_cast<seconds>(T.time_since_epoch()));
114 auto Fractional = T - Truncated;
122 TimePoint<seconds> Truncated = time_point_cast<seconds>(T);
123 auto Fractional = T - Truncated;