DateTime Struct Reference

#include <c4d_basetime.h>

Public Member Functions

 DateTime ()
 

Public Attributes

Int32 lYear
 
Int32 lMonth
 
Int32 lDay
 
Int32 lHour
 
Int32 lMinute
 
Int32 lSecond
 

Operators

Bool operator== (const DateTime &b) const
 
Bool operator!= (const DateTime &b) const
 
Bool operator< (const DateTime &b) const
 
Bool operator> (const DateTime &b) const
 
Bool operator<= (const DateTime &b) const
 
Bool operator>= (const DateTime &b) const
 

Detailed Description

Represents a date time.

Constructor & Destructor Documentation

◆ DateTime()

DateTime ( )

Default constructor. (Set the time to 2000-01-01 00:00:00.)

Member Function Documentation

◆ operator==()

Bool operator== ( const DateTime b) const

Equality operator. Check if the date time is equal to another.

Parameters
[in]bThe right-operand DateTime.
Returns
The result of the comparison.

◆ operator!=()

Bool operator!= ( const DateTime b) const

Inequality operator. Check if the date time is not equal to another.

Parameters
[in]bThe right-operand DateTime.
Returns
The result of the comparison.

◆ operator<()

Bool operator< ( const DateTime b) const

Less than operator. Check if the date time is less than another.

Parameters
[in]bThe right-operand DateTime.
Returns
The result of the comparison.

◆ operator>()

Bool operator> ( const DateTime b) const

Greater than operator. Check if the date time is greater than another.

Parameters
[in]bThe right-operand DateTime.
Returns
The result of the comparison.

◆ operator<=()

Bool operator<= ( const DateTime b) const

Less than or equal operator. Check if the date time is less than or equal to another.

Parameters
[in]bThe right-operand DateTime.
Returns
The result of the comparison.

◆ operator>=()

Bool operator>= ( const DateTime b) const

Greater than or equal operator. Check if the date time is greater than equal to another.

Parameters
[in]bThe right-operand DateTime.
Returns
The result of the comparison.

Member Data Documentation

◆ lYear

Int32 lYear

Date year.

◆ lMonth

Int32 lMonth

Date month.

◆ lDay

Int32 lDay

Date day in month.

◆ lHour

Int32 lHour

Time hour.

◆ lMinute

Int32 lMinute

Time minute.

◆ lSecond

Int32 lSecond

Time second.