userver: logging::TimeString Struct Reference
Loading...
Searching...
No Matches
logging::TimeString Struct Referencefinal

#include <userver/logging/timestamp.hpp>

Detailed Description

A fixed-size date and time string in YYYY-MM-DDTHH:MM:SS format.

The contents are not null-terminated. Use ToStringView() to access them.

Definition at line 20 of file timestamp.hpp.

Public Member Functions

std::string_view ToStringView () const noexcept

Public Attributes

char data [kSize] {}

Static Public Attributes

static constexpr std::size_t kSize = sizeof("0000-00-00T00:00:00") - 1

Member Function Documentation

◆ ToStringView()

std::string_view logging::TimeString::ToStringView ( ) const
inlinenoexcept

Definition at line 25 of file timestamp.hpp.

Member Data Documentation

◆ data

char logging::TimeString::data[kSize] {}

Definition at line 23 of file timestamp.hpp.

◆ kSize

std::size_t logging::TimeString::kSize = sizeof("0000-00-00T00:00:00") - 1
staticconstexpr

Definition at line 21 of file timestamp.hpp.


The documentation for this struct was generated from the following file: