CFx SDK Documentation  2023 SP0
Public Member Functions | List of all members
OdDbDate Class Reference

#include <DbDate.h>

Inheritance diagram for OdDbDate:
OdTimeStamp

Public Member Functions

 OdDbDate ()
 
 OdDbDate (const OdTimeStamp &tStamp)
 
 OdDbDate (InitialValue init)
 
OdDbDate operator= (const OdTimeStamp &tStamp)
 
void dwgIn (OdDbDwgFiler *pFiler)
 
void dwgOut (OdDbDwgFiler *pFiler) const
 
- Public Member Functions inherited from OdTimeStamp
 OdTimeStamp ()
 
 OdTimeStamp (InitialValue init)
 
void getDate (short &month, short &day, short &year) const
 
void setDate (short month, short day, short year)
 
short month () const
 
void setMonth (short month)
 
short day () const
 
void setDay (short day)
 
short year () const
 
void setYear (short year)
 
void getTime (short &hour, short &minute, short &second, short &millisecond) const
 
void setTime (short hour, short minute, short second, short millisecond)
 
short hour () const
 
void setHour (short hour)
 
short minute () const
 
void setMinute (short minute)
 
short second () const
 
void setSecond (short second)
 
short millisecond () const
 
void setMillisecond (short millisecond)
 
void setToZero ()
 
void getLocalTime ()
 
void getUniversalTime ()
 
void localToUniversal ()
 
void universalToLocal ()
 
OdUInt32 julianDay () const
 
void setJulianDay (OdUInt32 julianDay)
 
OdUInt32 msecsPastMidnight () const
 
void setMsecsPastMidnight (OdUInt32 msecsPastMidnight)
 
void setJulianDate (OdUInt32 julianDay, OdUInt32 msecsPastMidnight)
 
double julianFraction () const
 
void setJulianFraction (double julianFraction)
 
bool operator== (const OdTimeStamp &tStamp) const
 
bool operator!= (const OdTimeStamp &tStamp) const
 
bool operator> (const OdTimeStamp &tStamp) const
 
bool operator>= (const OdTimeStamp &tStamp) const
 
bool operator< (const OdTimeStamp &tStamp) const
 
bool operator<= (const OdTimeStamp &tStamp) const
 
const OdTimeStamp operator+ (const OdTimeStamp &tStamp) const
 
const OdTimeStamp operator- (const OdTimeStamp &tStamp) const
 
const OdTimeStampoperator+= (const OdTimeStamp &tStamp)
 
const OdTimeStampoperator-= (const OdTimeStamp &tStamp)
 
const OdTimeStampadd (const OdTimeStamp &tStamp)
 
const OdTimeStampsubtract (const OdTimeStamp &tStamp)
 
void ctime (class OdString &timeString) const
 
void strftime (const OdString &format, OdString &timeString) const
 
OdInt64 packedValue () const
 
void setPackedValue (OdInt64 t)
 
short weekday () const
 

Additional Inherited Members

- Public Types inherited from OdTimeStamp
enum  InitialValue { kInitZero = 1 , kInitLocalTime = 2 , kInitUniversalTime = 3 }
 

Detailed Description

This class represents Date objects in an OdDbDatabase instance.

See also
TD_Db

<group OdDb_Classes>

Definition at line 44 of file DbDate.h.

Constructor & Destructor Documentation

◆ OdDbDate() [1/3]

OdDbDate::OdDbDate ( )
Parameters
tStamp[in] TimeStamp.
init[in] Initial value.
Remarks
The default constructor initializes the Julian date and time to zero.

init must be one of the following:

Value Description kInitZero 1 Zero. kInitLocalTime 2 Workstation date in local time. kInitUniversalTime 3 Workstation date in Universal (Greenwich Mean) Time..

◆ OdDbDate() [2/3]

OdDbDate::OdDbDate ( const OdTimeStamp tStamp)

◆ OdDbDate() [3/3]

OdDbDate::OdDbDate ( InitialValue  init)

Member Function Documentation

◆ dwgIn()

void OdDbDate::dwgIn ( OdDbDwgFiler pFiler)

Reads the .dwg file format data of this object from the specified file.

Parameters
pFiler[in] Pointer to the filer from which the data are to be read.

◆ dwgOut()

void OdDbDate::dwgOut ( OdDbDwgFiler pFiler) const

Writes the .dwg file format data of this object to the specified filer.

Parameters
pFiler[in] Pointer to the filer to which the data are to be written.

◆ operator=()

OdDbDate OdDbDate::operator= ( const OdTimeStamp tStamp)

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