userver: userver/logging/timestamp.hpp File Reference
Loading...
Searching...
No Matches
timestamp.hpp File Reference

Detailed Description

Coroutine-safe date and time formatting utilities.

Definition in file timestamp.hpp.

Go to the source code of this file.

#include <chrono>
#include <cstddef>
#include <string_view>
#include <userver/compiler/impl/lifetime.hpp>

Classes

struct  logging::TimeString

Namespaces

namespace  logging
 Logging levels, helpers, default logger, and related utilities.

Functions

TimeString logging::GetCurrentGMTimeString (std::chrono::system_clock::time_point time) noexcept
 Formats time in UTC as YYYY-MM-DDTHH:MM:SS.
TimeString logging::GetCurrentLocalTimeString (std::chrono::system_clock::time_point time) noexcept
 Formats time in the system local timezone as YYYY-MM-DDTHH:MM:SS.