lintel 0.2.0
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
DateTimeFormat.h File Reference
#include <cctype>
#include <charconv>
#include <chrono>
#include <cstdio>
#include <ctime>
#include <string>
#include "lintel/core/platform/Platform.h"

Go to the source code of this file.

Namespaces

namespace  lintel
 
namespace  lintel::datetime
 

Typedefs

using lintel::datetime::SystemTime = std::chrono::sys_time< std::chrono::microseconds >
 

Functions

std::time_t lintel::datetime::timegmPortable (std::tm *tm) noexcept
 
long lintel::datetime::localOffsetSeconds (std::time_t time, const std::tm &local) noexcept
 
bool lintel::datetime::isEastOfUtc (long offsetSeconds) noexcept
 
std::string lintel::datetime::formatOffset (long offsetSeconds)
 
std::string lintel::datetime::formatSystemTime (const SystemTime &value, char dateSeparator='-')
 
SystemTime lintel::datetime::parseSystemTime (const std::string &value)
 
std::string lintel::datetime::formatUtcIsoSeconds (const std::chrono::sys_seconds &value)