LocalFileTime Class Reference

#include <c4d_file.h>

Public Member Functions

void Init ()
 
Int32 Compare (const LocalFileTime &t0, const LocalFileTime &t1)
 
Bool operator== (const LocalFileTime &x)
 
Bool operator!= (const LocalFileTime &x)
 
Bool operator> (const LocalFileTime &x)
 
Bool operator< (const LocalFileTime &x)
 
Bool operator>= (const LocalFileTime &x)
 
Bool operator<= (const LocalFileTime &x)
 
LocalFileTime operator- (const LocalFileTime &t) const
 

Public Attributes

UInt16 year
 
UInt16 month
 
UInt16 day
 
UInt16 hour
 
UInt16 minute
 
UInt16 second
 

Member Function Documentation

◆ Init()

void Init ( )

Initializes the file time to a possibly invalid but deterministic state (0000-00-00 00:00:00).

◆ Compare()

Int32 Compare ( const LocalFileTime t0,
const LocalFileTime t1 
)

Compares the two times t0 and t1.

Parameters
[in]t0File time to compare.
[in]t1File time to compare.
Returns
0 if the times are identical. < 0 if t0 is before t1, or > 0 if t0 is after t1.

◆ operator==()

Bool operator== ( const LocalFileTime x)

Equality operator. Checks if the file time is the same as another.

Parameters
[in]xFile time to check equality with.

◆ operator!=()

Bool operator!= ( const LocalFileTime x)

Inequality operator. Checks if the file time is different to another.

Parameters
[in]xFile time to compare with.

◆ operator>()

Bool operator> ( const LocalFileTime x)

Greater than operator. Checks if the file time is greater than another.

Parameters
[in]xFile time to compare with.

◆ operator<()

Bool operator< ( const LocalFileTime x)

Less than operator. Checks if the file time is lower than another.

Parameters
[in]xFile time to compare with.

◆ operator>=()

Bool operator>= ( const LocalFileTime x)

Greater than or equal to operator. Checks if the file time is greater or equal than another.

Parameters
[in]xFile time to compare with.

◆ operator<=()

Bool operator<= ( const LocalFileTime x)

Less than or equal operator. Checks if the file time is lower or equal than another.

Parameters
[in]xFile time to compare with.

◆ operator-()

LocalFileTime operator- ( const LocalFileTime t) const

Minus operator. Subtracts one time from another.

Since
R19
Parameters
[in]tFile time to subtract from.

Member Data Documentation

◆ year

UInt16 year

Year. (Actual year, e.g. 2005 A.D. = 2005.)

◆ month

UInt16 month

Month. (Actual month, e.g. September = 9.)

◆ day

UInt16 day

Day. (Actual day, e.g. 30 = 30.)

◆ hour

UInt16 hour

Actual hour. (Between 0 and 23. 4 pm = 16.)

◆ minute

UInt16 minute

Actual minute. (Between 0 and 59.)

◆ second

UInt16 second

Actual second. (Between 0 and 59.)