NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
date::detail::MonthDayTime Class Reference

#include <tz_private.h>

Collaboration diagram for date::detail::MonthDayTime:

Classes

struct  pair
 
union  U
 

Public Member Functions

 MonthDayTime ()=default
 
 MonthDayTime (local_seconds tp, tz timezone)
 
 MonthDayTime (const date::month_day &md, tz timezone)
 
date::day day () const
 
date::month month () const
 
tz zone () const
 
void canonicalize (date::year y)
 
sys_seconds to_sys (date::year y, std::chrono::seconds offset, std::chrono::seconds save) const
 
sys_days to_sys_days (date::year y) const
 
sys_seconds to_time_point (date::year y) const
 
int compare (date::year y, const MonthDayTime &x, date::year yx, std::chrono::seconds offset, std::chrono::minutes prev_save) const
 

Private Types

enum  Type { month_day , month_last_dow , lteq , gteq }
 

Private Attributes

Type type_ {month_day}
 
union date::detail::MonthDayTime::U u
 
std::chrono::hours h_ {0}
 
std::chrono::minutes m_ {0}
 
std::chrono::seconds s_ {0}
 
tz zone_ {tz::local}
 

Friends

std::istream & operator>> (std::istream &is, MonthDayTime &x)
 
std::ostream & operator<< (std::ostream &os, const MonthDayTime &x)
 

Detailed Description

Definition at line 53 of file tz_private.h.

Member Enumeration Documentation

◆ Type

Enumerator
month_day 
month_last_dow 
lteq 
gteq 

Definition at line 69 of file tz_private.h.

Constructor & Destructor Documentation

◆ MonthDayTime() [1/3]

date::detail::MonthDayTime::MonthDayTime ( )
default

◆ MonthDayTime() [2/3]

date::detail::MonthDayTime::MonthDayTime ( local_seconds  tp,
tz  timezone 
)

Definition at line 762 of file tz.cpp.

References h_, m_, date::make_time(), s_, and u.

Here is the call graph for this function:

◆ MonthDayTime() [3/3]

date::detail::MonthDayTime::MonthDayTime ( const date::month_day md,
tz  timezone 
)

Definition at line 775 of file tz.cpp.

References u.

Member Function Documentation

◆ canonicalize()

void date::detail::MonthDayTime::canonicalize ( date::year  y)

Definition at line 925 of file tz.cpp.

Referenced by date::time_zone::parse_info().

◆ compare()

int date::detail::MonthDayTime::compare ( date::year  y,
const MonthDayTime x,
date::year  yx,
std::chrono::seconds  offset,
std::chrono::minutes  prev_save 
) const

Definition at line 814 of file tz.cpp.

References date::abs(), date::detail::local, date::detail::standard, to_sys_days(), to_time_point(), date::detail::utc, and zone_.

Referenced by date::find_rule_for_zone().

Here is the call graph for this function:

◆ day()

date::day date::detail::MonthDayTime::day ( ) const

Definition at line 782 of file tz.cpp.

References date::month_day::day(), and date::day::day().

Referenced by date::detail::operator<<().

Here is the call graph for this function:

◆ month()

date::month date::detail::MonthDayTime::month ( ) const

Definition at line 798 of file tz.cpp.

References date::month_day::month(), and date::month::month().

Here is the call graph for this function:

◆ to_sys()

sys_seconds date::detail::MonthDayTime::to_sys ( date::year  y,
std::chrono::seconds  offset,
std::chrono::seconds  save 
) const

Definition at line 856 of file tz.cpp.

References date::detail::local, and date::detail::standard.

Referenced by date::find_rule().

◆ to_sys_days()

date::sys_days date::detail::MonthDayTime::to_sys_days ( date::year  y) const

Definition at line 891 of file tz.cpp.

Referenced by compare().

◆ to_time_point()

sys_seconds date::detail::MonthDayTime::to_time_point ( date::year  y) const

Definition at line 918 of file tz.cpp.

Referenced by compare().

◆ zone()

tz date::detail::MonthDayTime::zone ( ) const
inline

Definition at line 110 of file tz_private.h.

References zone_.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const MonthDayTime x 
)
friend

◆ operator>>

std::istream & operator>> ( std::istream &  is,
MonthDayTime x 
)
friend

Member Data Documentation

◆ h_

std::chrono::hours date::detail::MonthDayTime::h_ {0}
private

Definition at line 98 of file tz_private.h.

Referenced by MonthDayTime(), date::detail::operator<<(), and date::detail::operator>>().

◆ m_

std::chrono::minutes date::detail::MonthDayTime::m_ {0}
private

Definition at line 99 of file tz_private.h.

Referenced by MonthDayTime(), date::detail::operator<<(), and date::detail::operator>>().

◆ s_

std::chrono::seconds date::detail::MonthDayTime::s_ {0}
private

Definition at line 100 of file tz_private.h.

Referenced by MonthDayTime(), date::detail::operator<<(), and date::detail::operator>>().

◆ type_

Type date::detail::MonthDayTime::type_ {month_day}
private

Definition at line 71 of file tz_private.h.

Referenced by date::detail::operator<<(), and date::detail::operator>>().

◆ u

union date::detail::MonthDayTime::U date::detail::MonthDayTime::u
private

◆ zone_

tz date::detail::MonthDayTime::zone_ {tz::local}
private

Definition at line 101 of file tz_private.h.

Referenced by compare(), date::detail::operator<<(), date::detail::operator>>(), and zone().


The documentation for this class was generated from the following files: