iceberg-cpp
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
timepoint.h File Reference

Provide time point conversion helpers. More...

#include <chrono>
#include "iceberg/iceberg_export.h"

Go to the source code of this file.

Namespaces

namespace  iceberg
 Core Apache Iceberg C++ APIs.
 

Typedefs

using iceberg::TimePointMs = std::chrono::time_point< std::chrono::system_clock, std::chrono::milliseconds >
 A time point in milliseconds.
 
using iceberg::TimePointNs = std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds >
 A time point in nanoseconds.
 

Functions

ICEBERG_EXPORT TimePointMs iceberg::TimePointMsFromUnixMs (int64_t unix_ms)
 Returns a TimePointMs from a Unix timestamp in milliseconds.
 
ICEBERG_EXPORT int64_t iceberg::UnixMsFromTimePointMs (TimePointMs time_point_ms)
 Returns a Unix timestamp in milliseconds from a TimePointMs.
 
ICEBERG_EXPORT TimePointNs iceberg::TimePointNsFromUnixNs (int64_t unix_ns)
 Returns a TimePointNs from a Unix timestamp in nanoseconds.
 
ICEBERG_EXPORT int64_t iceberg::UnixNsFromTimePointNs (TimePointNs time_point_ns)
 Returns a Unix timestamp in nanoseconds from a TimePointNs.
 
ICEBERG_EXPORT std::string iceberg::FormatTimePointMs (TimePointMs time_point_ms)
 Returns a human-readable string representation of a TimePointMs.
 
ICEBERG_EXPORT TimePointMs iceberg::CurrentTimePointMs ()
 Returns a time point in milliseconds that represents the current system time.
 

Detailed Description

Provide time point conversion helpers.