iceberg-cpp
Loading...
Searching...
No Matches
Classes | Namespaces | Variables
temporal_util.h File Reference

Provide date and timestamp conversion utilities. More...

#include <chrono>
#include <cstdint>
#include <string_view>
#include "iceberg/iceberg_export.h"
#include "iceberg/result.h"
#include "iceberg/type_fwd.h"

Go to the source code of this file.

Classes

class  iceberg::TemporalUtils
 

Namespaces

namespace  iceberg
 Core Apache Iceberg C++ APIs.
 

Variables

constexpr int64_t iceberg::internal::kNanosPerMicro = 1000
 
constexpr int64_t iceberg::internal::kMicrosPerMilli = 1000
 
constexpr int64_t iceberg::internal::kMicrosPerSecond = 1000 * kMicrosPerMilli
 
constexpr int64_t iceberg::internal::kSecondsPerMinute = 60
 
constexpr int64_t iceberg::internal::kMinutesPerHour = 60
 
constexpr int64_t iceberg::internal::kHoursPerDay = 24
 
constexpr int64_t iceberg::internal::kSecondsPerHour = kMinutesPerHour * kSecondsPerMinute
 
constexpr int64_t iceberg::internal::kSecondsPerDay = kHoursPerDay * kSecondsPerHour
 
constexpr int64_t iceberg::internal::kMicrosPerDay = kSecondsPerDay * kMicrosPerSecond
 
constexpr int64_t iceberg::internal::kNanosPerMilli = kMicrosPerMilli * kNanosPerMicro
 
constexpr int64_t iceberg::internal::kNanosPerSecond = kMicrosPerSecond * kNanosPerMicro
 
constexpr int64_t iceberg::internal::kNanosPerDay = kMicrosPerDay * kNanosPerMicro
 
constexpr auto iceberg::internal::kEpochYmd = std::chrono::year{1970} / std::chrono::January / 1
 
constexpr auto iceberg::internal::kEpochDays = std::chrono::sys_days{kEpochYmd}
 

Detailed Description

Provide date and timestamp conversion utilities.