Public Member Functions | Static Public Member Functions

FbxDateTime Class Reference

This reference page is linked to from the following overview topics: List of Python Fbx classes.


Search for all occurrences

Detailed Description

FBX SDK date&time class.

Property used to store date and time information; not related to a FbxTime, which is used for film-related operations. The date and time property does not make any provisions for UTC, GMT or local zones; this is entirely up to client code to know what they are dealing with.

Definition at line 331 of file fbxpropertytypes.h.

#include <fbxpropertytypes.h>

List of all members.

Public Member Functions

void Clear ()
 Set the attributes to 0.
bool isValid () const
 Validates each field is within a normal range (month is 1-12, etc).

Static Public Member Functions

static FbxDateTime currentDateTimeGMT ()
 Get date&time from current date&time of GMT.

Constructors

 FbxDateTime ()
 Default constructor. Set attributes to 0.
 FbxDateTime (int pDay, int pMonth, int pYear, int pHour, int pMin, int pSec, int pMillisecond=0)
 Constructor.

Boolean operation

bool operator== (const FbxDateTime &pRHS) const
 Equivalence operator.
bool operator!= (const FbxDateTime &pRHS) const
 Non-equivalence operator.

Access

void setDate (int pDay, int pMonth, int pYear)
 Set the date.
void setTime (int pHour, int pMin, int pSec, int pMillisecond=0)
 Set the time.

Operation with string

FbxString toString () const
 Get the string format from this date&time.
bool fromString (const char *)
 Get date&time from the string format.

Constructor & Destructor Documentation

Default constructor. Set attributes to 0.

FbxDateTime ( int  pDay,
int  pMonth,
int  pYear,
int  pHour,
int  pMin,
int  pSec,
int  pMillisecond = 0 
)

Constructor.

Parameters:
pDayDay
pMonthMonth
pYearYear
pHourHour
pMinMinute
pSecSecond
pMillisecondMillisecond

Member Function Documentation

bool operator== ( const FbxDateTime pRHS) const

Equivalence operator.

Parameters:
pRHSThe date&time to be compared with this date&time.
Returns:
True, if the two date&time are equal, false otherwise.
bool operator!= ( const FbxDateTime pRHS) const

Non-equivalence operator.

Parameters:
pRHSThe date&time to be compared with this date&time.
Returns:
True, if the two date&time are not equal, false otherwise.
void Clear ( )

Set the attributes to 0.

bool isValid ( ) const

Validates each field is within a normal range (month is 1-12, etc).

Returns:
True, if each field is within a normal range, false otherwise.
void setDate ( int  pDay,
int  pMonth,
int  pYear 
)

Set the date.

Parameters:
pDayDay to be set.
pMonthMonth to be set.
pYearYear to be set.
void setTime ( int  pHour,
int  pMin,
int  pSec,
int  pMillisecond = 0 
)

Set the time.

Parameters:
pHourHour to be set.
pMinMinute to be set.
pSecSecond to be set.
pMillisecondMillisecond to be set.
FbxString toString ( ) const

Get the string format from this date&time.

Returns:
The string format got from this date&time.
bool fromString ( const char *  )

Get date&time from the string format.

Returns:
True, if get date&time from the string format successfully, false otherwise.
Remarks:
! This will only work with the format returned by toString(); if the format is not the same will return 'false' and the content of this object will remain unchanged.
static FbxDateTime currentDateTimeGMT ( ) [static]

Get date&time from current date&time of GMT.

Returns:
The date&time equal to current date&time of GMT.

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

FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime
FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime FbxDateTime