Euphoria
eu::core::DateTime Struct Reference

#include <datetime.h>

Public Member Functions

 DateTime ()=delete
 
void set_seconds (int seconds)
 
void set_minutes (int minutes)
 
void set_hour (int hour)
 
void set_day_of_moth (int day_of_moth)
 
void set_month (core::Month month)
 
void set_year (int year)
 
void set_dst (DstInfo dst)
 
std::string to_debug_string () const
 
int get_seconds () const
 
int get_minutes () const
 
int get_hour () const
 
int get_day_of_month () const
 
Month get_month () const
 
int get_year () const
 
DstInfo get_dst () const
 
TimeZone get_timezone () const
 
TimetWrapper get_time () const
 

Static Public Member Functions

static DateTime create_from_date (int year, core::Month month, int day, TimeZone timezone=TimeZone::local)
 
static DateTime create_from_date_and_time (int year, core::Month month, int day, int hour, int minute, int second, TimeZone timezone=TimeZone::local)
 
static DateTime create_from_current_time (TimeZone timezone=TimeZone::local)
 

Detailed Description

Definition at line 84 of file datetime.h.

Constructor & Destructor Documentation

◆ DateTime()

eu::core::DateTime::DateTime ( )
delete

Member Function Documentation

◆ create_from_current_time()

DateTime eu::core::DateTime::create_from_current_time ( TimeZone  timezone = TimeZone::local)
static

Definition at line 333 of file datetime.cc.

◆ create_from_date()

DateTime eu::core::DateTime::create_from_date ( int  year,
core::Month  month,
int  day,
TimeZone  timezone = TimeZone::local 
)
static

Definition at line 319 of file datetime.cc.

◆ create_from_date_and_time()

DateTime eu::core::DateTime::create_from_date_and_time ( int  year,
core::Month  month,
int  day,
int  hour,
int  minute,
int  second,
TimeZone  timezone = TimeZone::local 
)
static

Definition at line 326 of file datetime.cc.

◆ get_day_of_month()

int eu::core::DateTime::get_day_of_month ( ) const

Definition at line 431 of file datetime.cc.

◆ get_dst()

DstInfo eu::core::DateTime::get_dst ( ) const

Definition at line 452 of file datetime.cc.

◆ get_hour()

int eu::core::DateTime::get_hour ( ) const

Definition at line 424 of file datetime.cc.

◆ get_minutes()

int eu::core::DateTime::get_minutes ( ) const

Definition at line 417 of file datetime.cc.

◆ get_month()

Month eu::core::DateTime::get_month ( ) const

Definition at line 438 of file datetime.cc.

◆ get_seconds()

int eu::core::DateTime::get_seconds ( ) const

Definition at line 410 of file datetime.cc.

◆ get_time()

TimetWrapper eu::core::DateTime::get_time ( ) const

Definition at line 466 of file datetime.cc.

◆ get_timezone()

TimeZone eu::core::DateTime::get_timezone ( ) const

Definition at line 459 of file datetime.cc.

◆ get_year()

int eu::core::DateTime::get_year ( ) const

Definition at line 445 of file datetime.cc.

◆ set_day_of_moth()

void eu::core::DateTime::set_day_of_moth ( int  day_of_moth)

Definition at line 374 of file datetime.cc.

◆ set_dst()

void eu::core::DateTime::set_dst ( DstInfo  dst)

Definition at line 401 of file datetime.cc.

◆ set_hour()

void eu::core::DateTime::set_hour ( int  hour)

Definition at line 365 of file datetime.cc.

◆ set_minutes()

void eu::core::DateTime::set_minutes ( int  minutes)

Definition at line 356 of file datetime.cc.

◆ set_month()

void eu::core::DateTime::set_month ( core::Month  month)

Definition at line 383 of file datetime.cc.

◆ set_seconds()

void eu::core::DateTime::set_seconds ( int  seconds)

Definition at line 347 of file datetime.cc.

◆ set_year()

void eu::core::DateTime::set_year ( int  year)

Definition at line 392 of file datetime.cc.

◆ to_debug_string()

std::string eu::core::DateTime::to_debug_string ( ) const

Definition at line 340 of file datetime.cc.


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