Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::OCI::Date Struct Reference

Binary compatible with OCIDate. More...

#include <HOCITypes.h>

Collaboration diagram for Harlinn::OCI::Date:
[legend]

Public Member Functions

constexpr Date () noexcept
 
 Date (const DateTime &datetime) noexcept
 
Dateoperator= (const DateTime &datetime)
 
Common::Core::DateTime ToDateTime () const
 
void Assign (const DateTime &datetime) noexcept
 
constexpr bool IsEmpty () const noexcept
 
void GetTime (Byte &hour, Byte &minute, Byte &second) const noexcept
 
void SetTime (Byte hour, Byte minute, Byte second)
 
void GetDateTime (short &year, Byte &month, Byte &day, Byte &hour, Byte &minute, Byte &second) const noexcept
 
void SetDateTime (short year, Byte month, Byte day, Byte hour, Byte minute, Byte second) noexcept
 
void GetDate (short &year, Byte &month, Byte &day) const noexcept
 
void SetDate (short year, Byte month, Byte day) noexcept
 
Int64 Ticks () const
 
void SetTicks (Int64 ticks)
 

Public Attributes

Int16 Year
 gregorian year; range is -4712 <= year <= 9999
 
Byte Month
 month; range is 1 <= month < 12
 
Byte Day
 day; range is 1 <= day <= 31
 
OCI::Time Time
 time
 

Detailed Description

Binary compatible with OCIDate.

Constructor & Destructor Documentation

◆ Date() [1/2]

Harlinn::OCI::Date::Date ( )
inlineconstexprnoexcept

◆ Date() [2/2]

Harlinn::OCI::Date::Date ( const DateTime & datetime)
inlinenoexcept

Member Function Documentation

◆ Assign()

void Harlinn::OCI::Date::Assign ( const DateTime & datetime)
inlinenoexcept

◆ GetDate()

void Harlinn::OCI::Date::GetDate ( short & year,
Byte & month,
Byte & day ) const
inlinenoexcept

◆ GetDateTime()

void Harlinn::OCI::Date::GetDateTime ( short & year,
Byte & month,
Byte & day,
Byte & hour,
Byte & minute,
Byte & second ) const
inlinenoexcept

◆ GetTime()

void Harlinn::OCI::Date::GetTime ( Byte & hour,
Byte & minute,
Byte & second ) const
inlinenoexcept

◆ IsEmpty()

bool Harlinn::OCI::Date::IsEmpty ( ) const
inlineconstexprnoexcept

◆ operator=()

Date & Harlinn::OCI::Date::operator= ( const DateTime & datetime)
inline

◆ SetDate()

void Harlinn::OCI::Date::SetDate ( short year,
Byte month,
Byte day )
inlinenoexcept

◆ SetDateTime()

void Harlinn::OCI::Date::SetDateTime ( short year,
Byte month,
Byte day,
Byte hour,
Byte minute,
Byte second )
inlinenoexcept

◆ SetTicks()

void Harlinn::OCI::Date::SetTicks ( Int64 ticks)
inline

◆ SetTime()

void Harlinn::OCI::Date::SetTime ( Byte hour,
Byte minute,
Byte second )
inline

◆ Ticks()

Int64 Harlinn::OCI::Date::Ticks ( ) const
inline

◆ ToDateTime()

Common::Core::DateTime Harlinn::OCI::Date::ToDateTime ( ) const
inline

Member Data Documentation

◆ Day

Byte Harlinn::OCI::Date::Day

day; range is 1 <= day <= 31

◆ Month

Byte Harlinn::OCI::Date::Month

month; range is 1 <= month < 12

◆ Time

OCI::Time Harlinn::OCI::Date::Time

time

◆ Year

Int16 Harlinn::OCI::Date::Year

gregorian year; range is -4712 <= year <= 9999


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