Namespaces | Classes | Typedefs | Functions | Variables
absl::time_internal Namespace Reference

Namespaces

 cctz
 
 cctz_extension
 

Classes

struct  day_tag
 
struct  hour_tag
 
struct  minute_tag
 
struct  month_tag
 
struct  second_tag
 
struct  year_tag
 

Typedefs

template<typename T >
using EnableIfFloat = typename std::enable_if< std::is_floating_point< T >::value, int >::type
 
template<typename T >
using EnableIfIntegral = typename std::enable_if< std::is_integral< T >::value||std::is_enum< T >::value, int >::type
 

Functions

 bool ())
 
template<typename Rep , typename Period >
constexpr Duration FromChrono (const std::chrono::duration< Rep, Period > &d)
 
template<std::intmax_t N>
constexpr Duration FromInt64 (int64_t v, std::ratio< 1, N >)
 
constexpr Duration FromInt64 (int64_t v, std::ratio< 60 >)
 
constexpr Duration FromInt64 (int64_t v, std::ratio< 3600 >)
 
constexpr Time FromUnixDuration (Duration d)
 
constexpr int64_t GetRepHi (Duration d)
 
constexpr uint32_t GetRepLo (Duration d)
 
int64_t IDivDuration (bool satq, const Duration num, const Duration den, Duration *rem)
 
constexpr bool IsInfiniteDuration (Duration d)
 
template<typename T >
constexpr auto IsValidRep64 (int) -> decltype(int64_t
 
template<typename T >
constexpr auto IsValidRep64 (char) -> bool
 
TimeZone LoadTimeZone (const std::string &name)
 
constexpr Duration MakeDuration (int64_t hi, uint32_t lo)
 
constexpr Duration MakeDuration (int64_t hi, int64_t lo)
 
constexpr Duration MakeNormalizedDuration (int64_t sec, int64_t ticks)
 
Duration MakePosDoubleDuration (double n)
 
constexpr int64_t NegateAndSubtractOne (int64_t n)
 
std::ostream & operator<< (std::ostream &os, CivilYear y)
 
constexpr Duration OppositeInfinity (Duration d)
 
template<typename T >
ToChronoDuration (Duration d)
 
template<typename Ratio >
int64_t ToInt64 (Duration d, Ratio)
 
int64_t ToInt64 (Duration d, std::nano)
 
int64_t ToInt64 (Duration d, std::micro)
 
int64_t ToInt64 (Duration d, std::milli)
 
int64_t ToInt64 (Duration d, std::ratio< 1 >)
 
int64_t ToInt64 (Duration d, std::ratio< 60 >)
 
int64_t ToInt64 (Duration d, std::ratio< 3600 >)
 
constexpr Duration ToUnixDuration (Time t)
 

Variables

constexpr int64_t kTicksPerNanosecond = 4
 
constexpr int64_t kTicksPerSecond = 1000 * 1000 * 1000 * kTicksPerNanosecond
 

Typedef Documentation

◆ EnableIfFloat

template<typename T >
using absl::time_internal::EnableIfFloat = typedef typename std::enable_if<std::is_floating_point<T>::value, int>::type

Definition at line 109 of file time.h.

◆ EnableIfIntegral

template<typename T >
using absl::time_internal::EnableIfIntegral = typedef typename std::enable_if< std::is_integral<T>::value || std::is_enum<T>::value, int>::type

Definition at line 106 of file time.h.

Function Documentation

◆ bool()

absl::time_internal::bool ( )

Definition at line 1395 of file time.h.

◆ FromChrono()

template<typename Rep , typename Period >
constexpr Duration absl::time_internal::FromChrono ( const std::chrono::duration< Rep, Period > &  d)

Definition at line 1405 of file time.h.

◆ FromInt64() [1/3]

template<std::intmax_t N>
constexpr Duration absl::time_internal::FromInt64 ( int64_t  v,
std::ratio< 1, N >   
)

Definition at line 1372 of file time.h.

◆ FromInt64() [2/3]

constexpr Duration absl::time_internal::FromInt64 ( int64_t  v,
std::ratio< 60 >   
)

Definition at line 1378 of file time.h.

◆ FromInt64() [3/3]

constexpr Duration absl::time_internal::FromInt64 ( int64_t  v,
std::ratio< 3600 >   
)

Definition at line 1384 of file time.h.

◆ FromUnixDuration()

constexpr Time absl::time_internal::FromUnixDuration ( Duration  d)

Definition at line 1368 of file time.h.

◆ GetRepHi()

constexpr int64_t absl::time_internal::GetRepHi ( Duration  d)

Definition at line 1343 of file time.h.

◆ GetRepLo()

constexpr uint32_t absl::time_internal::GetRepLo ( Duration  d)

Definition at line 1344 of file time.h.

◆ IDivDuration()

int64_t absl::time_internal::IDivDuration ( bool  satq,
const Duration  num,
const Duration  den,
Duration rem 
)

Definition at line 350 of file duration.cc.

◆ IsInfiniteDuration()

constexpr bool absl::time_internal::IsInfiniteDuration ( Duration  d)

Definition at line 1347 of file time.h.

◆ IsValidRep64() [1/2]

template<typename T >
constexpr auto absl::time_internal::IsValidRep64 ( int  ) -> decltype(int64_t

Definition at line 1394 of file time.h.

◆ IsValidRep64() [2/2]

template<typename T >
constexpr auto absl::time_internal::IsValidRep64 ( char  ) -> bool

Definition at line 1399 of file time.h.

◆ LoadTimeZone()

absl::TimeZone absl::time_internal::LoadTimeZone ( const std::string &  name)

Definition at line 29 of file test_util.cc.

◆ MakeDuration() [1/2]

constexpr Duration absl::time_internal::MakeDuration ( int64_t  hi,
uint32_t  lo = 0 
)

Definition at line 1313 of file time.h.

◆ MakeDuration() [2/2]

constexpr Duration absl::time_internal::MakeDuration ( int64_t  hi,
int64_t  lo 
)

Definition at line 1317 of file time.h.

◆ MakeNormalizedDuration()

constexpr Duration absl::time_internal::MakeNormalizedDuration ( int64_t  sec,
int64_t  ticks 
)

Definition at line 1337 of file time.h.

◆ MakePosDoubleDuration()

Duration absl::time_internal::MakePosDoubleDuration ( double  n)
inline

Definition at line 1324 of file time.h.

◆ NegateAndSubtractOne()

constexpr int64_t absl::time_internal::NegateAndSubtractOne ( int64_t  n)

Definition at line 1358 of file time.h.

◆ operator<<()

std::ostream & absl::time_internal::operator<< ( std::ostream &  os,
CivilYear  y 
)

Definition at line 62 of file civil_time.cc.

◆ OppositeInfinity()

constexpr Duration absl::time_internal::OppositeInfinity ( Duration  d)

Definition at line 1351 of file time.h.

◆ ToChronoDuration()

template<typename T >
T absl::time_internal::ToChronoDuration ( Duration  d)

Definition at line 1438 of file time.h.

◆ ToInt64() [1/7]

template<typename Ratio >
int64_t absl::time_internal::ToInt64 ( Duration  d,
Ratio   
)

Definition at line 1411 of file time.h.

◆ ToInt64() [2/7]

int64_t absl::time_internal::ToInt64 ( Duration  d,
std::nano   
)
inline

Definition at line 1417 of file time.h.

◆ ToInt64() [3/7]

int64_t absl::time_internal::ToInt64 ( Duration  d,
std::micro   
)
inline

Definition at line 1420 of file time.h.

◆ ToInt64() [4/7]

int64_t absl::time_internal::ToInt64 ( Duration  d,
std::milli   
)
inline

Definition at line 1423 of file time.h.

◆ ToInt64() [5/7]

int64_t absl::time_internal::ToInt64 ( Duration  d,
std::ratio< 1 >   
)
inline

Definition at line 1426 of file time.h.

◆ ToInt64() [6/7]

int64_t absl::time_internal::ToInt64 ( Duration  d,
std::ratio< 60 >   
)
inline

Definition at line 1429 of file time.h.

◆ ToInt64() [7/7]

int64_t absl::time_internal::ToInt64 ( Duration  d,
std::ratio< 3600 >   
)
inline

Definition at line 1432 of file time.h.

◆ ToUnixDuration()

constexpr Duration absl::time_internal::ToUnixDuration ( Time  t)

Definition at line 1369 of file time.h.

Variable Documentation

◆ kTicksPerNanosecond

constexpr int64_t absl::time_internal::kTicksPerNanosecond = 4

Definition at line 98 of file time.h.

◆ kTicksPerSecond

constexpr int64_t absl::time_internal::kTicksPerSecond = 1000 * 1000 * 1000 * kTicksPerNanosecond

Definition at line 99 of file time.h.



abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:23