Skip to main content

chrono::Date

Types

Month#

  • null
  • january
  • february
  • march
  • april
  • may
  • june
  • july
  • august
  • september
  • october
  • november
  • december

Functions

Date(const DateTime &date_time, const Construct &options=Construct())#

explicit

chrono::Date::Date (const DateTime &date_time, const Construct &options=Construct())

day() const#

inline

int chrono::Date::day () const

Type: int

get_tm() const#

inline

const struct tm & chrono::Date::get_tm () const

Type: const struct tm &

hour() const#

inline

int chrono::Date::hour () const

Type: int

minute() const#

inline

int chrono::Date::minute () const

Type: int

month() const#

inline

Month chrono::Date::month () const

Type: Month

second() const#

inline

int chrono::Date::second () const

Type: int

to_string(var::StringView format="%Y-%m-%d %H:%M:%S") const#

var::GeneralString chrono::Date::to_string (var::StringView format="%Y-%m-%d %H:%M:%S") const

Type: var::GeneralString

Parameters:

weekday() const#

inline

int chrono::Date::weekday () const

Type: int

year() const#

inline

int chrono::Date::year () const

Type: int

yearday() const#

inline

int chrono::Date::yearday () const

Type: int

Static Functions

to_cstring(Month value)#

static const char * chrono::Date::to_cstring (Month value)

Type: const char *

Parameters: