Classes | Namespaces | Macros | Typedefs | Functions
timestamps.hpp File Reference

Concrete type definitions for int32_t and int64_t timestamps in varying resolutions as durations since the UNIX epoch. More...

#include <limits>
#include <cuda/std/chrono>

Go to the source code of this file.

Classes

struct  cudf::detail::timestamp< Duration >
 

Namespaces

 cudf
 cuDF interfaces
 

Macros

#define TIMESTAMP_LIMITS(TypeName)
 Specialization of std::numeric_limits for cudf::detail::timestamp. More...
 

Typedefs

template<class Duration >
using cudf::detail::time_point = cuda::std::chrono::sys_time< Duration >
 
using cudf::timestamp_D = detail::timestamp< cuda::std::chrono::duration< int32_t, cuda::std::ratio< 86400 > >>
 Type alias representing an int32_t duration of days since the unix epoch.
 
using cudf::timestamp_s = detail::timestamp< cuda::std::chrono::duration< int64_t, cuda::std::ratio< 1 > >>
 Type alias representing an int64_t duration of seconds since the unix epoch.
 
using cudf::timestamp_ms = detail::timestamp< cuda::std::chrono::duration< int64_t, cuda::std::milli > >
 Type alias representing an int64_t duration of milliseconds since the unix epoch.
 
using cudf::timestamp_us = detail::timestamp< cuda::std::chrono::duration< int64_t, cuda::std::micro > >
 Type alias representing an int64_t duration of microseconds since the unix epoch.
 
using cudf::timestamp_ns = detail::timestamp< cuda::std::chrono::duration< int64_t, cuda::std::nano > >
 Type alias representing an int64_t duration of nanoseconds since the unix epoch.
 

Functions

 std::TIMESTAMP_LIMITS (cudf::timestamp_D)
 
 std::TIMESTAMP_LIMITS (cudf::timestamp_s)
 
 std::TIMESTAMP_LIMITS (cudf::timestamp_ms)
 

Detailed Description

Concrete type definitions for int32_t and int64_t timestamps in varying resolutions as durations since the UNIX epoch.

Definition in file timestamps.hpp.

Macro Definition Documentation

◆ TIMESTAMP_LIMITS

#define TIMESTAMP_LIMITS (   TypeName)
Value:
template <> \
struct numeric_limits<TypeName> { \
static constexpr TypeName max() noexcept { return TypeName::max(); } \
static constexpr TypeName lowest() noexcept \
{ \
return TypeName{TypeName::duration{std::numeric_limits<typename TypeName::rep>::lowest()}}; \
} \
static constexpr TypeName min() noexcept { return TypeName::min(); } \
}

Specialization of std::numeric_limits for cudf::detail::timestamp.

Pass through to return the limits of the underlying numeric representation.

Definition at line 98 of file timestamps.hpp.