OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TSystemTime Class Reference

TSystemTime is a class derived from the structure SYSTEMTIME. More...

#include <owl/wsyscls.h>

Inheritance diagram for owl::TSystemTime:

Public Member Functions

 TSystemTime ()
 
 TSystemTime (uint y, uint m, uint d, uint h=0, uint mn=0, uint s=0, uint dw=0, uint ms=0)
 
 TSystemTime (const TSystemTime &tm)
 
 TSystemTime (const TFileTime &tm)
 
 TSystemTime (const SYSTEMTIME &tm)
 
 TSystemTime (const tstring &, LCID=0)
 Parses the given date and time string using the optional locale.
 
uint16 GetYear ()
 
uint16 GetYear () const
 
void SetYear (uint y)
 
uint16 GetMonth ()
 
uint16 GetMonth () const
 
void SetMonth (uint m)
 
uint16 GetDayOfWeek ()
 
uint16 GetDayOfWeek () const
 
void SetDayOfWeek (uint dw)
 
uint16 GetDay ()
 
uint16 GetDay () const
 
void SetDay (uint d)
 
uint16 GetHour ()
 
uint16 GetHour () const
 
void SetHour (uint h)
 
uint16 GetMinute ()
 
uint16 GetMinute () const
 
void SetMinute (uint m)
 
uint16 GetSecond ()
 
uint16 GetSecond () const
 
void SetSecond (uint s)
 
uint16 GetMilliseconds ()
 
uint16 GetMilliseconds () const
 
void SetMilliseconds (uint ms)
 
TFileTime GetFileTime ()
 
TSystemTimeoperator= (const TFileTime &ft)
 
bool operator< (const TSystemTime &t) const
 
bool operator<= (const TSystemTime &t) const
 
bool operator> (const TSystemTime &t) const
 
bool operator>= (const TSystemTime &t) const
 
bool operator== (const TSystemTime &t) const
 
bool operator!= (const TSystemTime &t) const
 

Static Public Member Functions

static TSystemTime LocalTime ()
 
static TSystemTime SystemTime ()
 

Detailed Description

TSystemTime is a class derived from the structure SYSTEMTIME.

The SYSTEMTIME struct is defined as

Definition at line 420 of file wsyscls.h.

Constructor & Destructor Documentation

◆ TSystemTime() [1/6]

owl::TSystemTime::TSystemTime ( )
inline

Definition at line 422 of file wsyscls.h.

◆ TSystemTime() [2/6]

owl::TSystemTime::TSystemTime ( uint y,
uint m,
uint d,
uint h = 0,
uint mn = 0,
uint s = 0,
uint dw = 0,
uint ms = 0 )
inline

Definition at line 571 of file wsyscls.h.

◆ TSystemTime() [3/6]

owl::TSystemTime::TSystemTime ( const TSystemTime & tm)
inline

Definition at line 424 of file wsyscls.h.

◆ TSystemTime() [4/6]

owl::TSystemTime::TSystemTime ( const TFileTime & tm)
inline

Definition at line 425 of file wsyscls.h.

◆ TSystemTime() [5/6]

owl::TSystemTime::TSystemTime ( const SYSTEMTIME & tm)
inline

Definition at line 426 of file wsyscls.h.

◆ TSystemTime() [6/6]

owl::TSystemTime::TSystemTime ( const tstring & s,
LCID locale = 0 )

Parses the given date and time string using the optional locale.

The user default locale is used if no locale is specified. Throws an TXOwl exception if parsing fails.

Definition at line 193 of file wsyscls.cpp.

References _A2W_A, _USES_CONVERSION_A, and owl::TXOwl::Raise().

Member Function Documentation

◆ GetDay() [1/2]

uint16 owl::TSystemTime::GetDay ( )
inline

Definition at line 447 of file wsyscls.h.

◆ GetDay() [2/2]

uint16 owl::TSystemTime::GetDay ( ) const
inline

Definition at line 448 of file wsyscls.h.

◆ GetDayOfWeek() [1/2]

uint16 owl::TSystemTime::GetDayOfWeek ( )
inline

Definition at line 443 of file wsyscls.h.

◆ GetDayOfWeek() [2/2]

uint16 owl::TSystemTime::GetDayOfWeek ( ) const
inline

Definition at line 444 of file wsyscls.h.

◆ GetFileTime()

TFileTime owl::TSystemTime::GetFileTime ( )
inline

Definition at line 467 of file wsyscls.h.

◆ GetHour() [1/2]

uint16 owl::TSystemTime::GetHour ( )
inline

Definition at line 451 of file wsyscls.h.

◆ GetHour() [2/2]

uint16 owl::TSystemTime::GetHour ( ) const
inline

Definition at line 452 of file wsyscls.h.

◆ GetMilliseconds() [1/2]

uint16 owl::TSystemTime::GetMilliseconds ( )
inline

Definition at line 463 of file wsyscls.h.

◆ GetMilliseconds() [2/2]

uint16 owl::TSystemTime::GetMilliseconds ( ) const
inline

Definition at line 464 of file wsyscls.h.

◆ GetMinute() [1/2]

uint16 owl::TSystemTime::GetMinute ( )
inline

Definition at line 455 of file wsyscls.h.

◆ GetMinute() [2/2]

uint16 owl::TSystemTime::GetMinute ( ) const
inline

Definition at line 456 of file wsyscls.h.

◆ GetMonth() [1/2]

uint16 owl::TSystemTime::GetMonth ( )
inline

Definition at line 439 of file wsyscls.h.

◆ GetMonth() [2/2]

uint16 owl::TSystemTime::GetMonth ( ) const
inline

Definition at line 440 of file wsyscls.h.

◆ GetSecond() [1/2]

uint16 owl::TSystemTime::GetSecond ( )
inline

Definition at line 459 of file wsyscls.h.

◆ GetSecond() [2/2]

uint16 owl::TSystemTime::GetSecond ( ) const
inline

Definition at line 460 of file wsyscls.h.

◆ GetYear() [1/2]

uint16 owl::TSystemTime::GetYear ( )
inline

Definition at line 435 of file wsyscls.h.

◆ GetYear() [2/2]

uint16 owl::TSystemTime::GetYear ( ) const
inline

Definition at line 436 of file wsyscls.h.

◆ LocalTime()

static TSystemTime owl::TSystemTime::LocalTime ( )
inlinestatic

Definition at line 468 of file wsyscls.h.

◆ operator!=()

bool owl::TSystemTime::operator!= ( const TSystemTime & t) const
inline

Definition at line 610 of file wsyscls.h.

◆ operator<()

bool owl::TSystemTime::operator< ( const TSystemTime & t) const
inline

Definition at line 585 of file wsyscls.h.

◆ operator<=()

bool owl::TSystemTime::operator<= ( const TSystemTime & t) const
inline

Definition at line 590 of file wsyscls.h.

◆ operator=()

TSystemTime & owl::TSystemTime::operator= ( const TFileTime & ft)
inline

Definition at line 471 of file wsyscls.h.

◆ operator==()

bool owl::TSystemTime::operator== ( const TSystemTime & t) const
inline

Definition at line 605 of file wsyscls.h.

◆ operator>()

bool owl::TSystemTime::operator> ( const TSystemTime & t) const
inline

Definition at line 595 of file wsyscls.h.

◆ operator>=()

bool owl::TSystemTime::operator>= ( const TSystemTime & t) const
inline

Definition at line 600 of file wsyscls.h.

◆ SetDay()

void owl::TSystemTime::SetDay ( uint d)
inline

Definition at line 449 of file wsyscls.h.

◆ SetDayOfWeek()

void owl::TSystemTime::SetDayOfWeek ( uint dw)
inline

Definition at line 445 of file wsyscls.h.

◆ SetHour()

void owl::TSystemTime::SetHour ( uint h)
inline

Definition at line 453 of file wsyscls.h.

◆ SetMilliseconds()

void owl::TSystemTime::SetMilliseconds ( uint ms)
inline

Definition at line 465 of file wsyscls.h.

◆ SetMinute()

void owl::TSystemTime::SetMinute ( uint m)
inline

Definition at line 457 of file wsyscls.h.

◆ SetMonth()

void owl::TSystemTime::SetMonth ( uint m)
inline

Definition at line 441 of file wsyscls.h.

◆ SetSecond()

void owl::TSystemTime::SetSecond ( uint s)
inline

Definition at line 461 of file wsyscls.h.

◆ SetYear()

void owl::TSystemTime::SetYear ( uint y)
inline

Definition at line 437 of file wsyscls.h.

◆ SystemTime()

static TSystemTime owl::TSystemTime::SystemTime ( )
inlinestatic

Definition at line 469 of file wsyscls.h.


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