|
FBX C++ API Reference
|
#include <fbxpropertytypes.h>
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 332 of file fbxpropertytypes.h.
Public Member Functions | |
| void | Clear () |
| Set the attributes to 0. More... | |
| bool | isValid () const |
| Validates each field is within a normal range (month is 1-12, etc). More... | |
Static Public Member Functions | |
| static FbxDateTime | currentDateTimeGMT () |
| Get date&time from current date&time of GMT. More... | |
Constructors | |
| FbxDateTime () | |
| Default constructor. Set attributes to 0. More... | |
| FbxDateTime (int pDay, int pMonth, int pYear, int pHour, int pMin, int pSec, int pMillisecond=0) | |
| Constructor. More... | |
Boolean operation | |
| bool | operator== (const FbxDateTime &pRHS) const |
| Equivalence operator. More... | |
| bool | operator!= (const FbxDateTime &pRHS) const |
| Non-equivalence operator. More... | |
Access | |
| void | setDate (int pDay, int pMonth, int pYear) |
| Set the date. More... | |
| void | setTime (int pHour, int pMin, int pSec, int pMillisecond=0) |
| Set the time. More... | |
Operation with string | |
| FbxString | toString () const |
| Get the string format from this date&time. More... | |
| bool | fromString (const char *) |
| Get date&time from the string format. More... | |
| FbxDateTime | ( | ) |
Default constructor. Set attributes to 0.
| FbxDateTime | ( | int | pDay, |
| int | pMonth, | ||
| int | pYear, | ||
| int | pHour, | ||
| int | pMin, | ||
| int | pSec, | ||
| int | pMillisecond = 0 |
||
| ) |
Constructor.
| pDay | Day |
| pMonth | Month |
| pYear | Year |
| pHour | Hour |
| pMin | Minute |
| pSec | Second |
| pMillisecond | Millisecond |
| bool operator== | ( | const FbxDateTime & | pRHS | ) | const |
Equivalence operator.
| pRHS | The date&time to be compared with this date&time. |
True, if the two date&time are equal, false otherwise. | bool operator!= | ( | const FbxDateTime & | pRHS | ) | const |
Non-equivalence operator.
| pRHS | The date&time to be compared with this date&time. |
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).
True, if each field is within a normal range, false otherwise. | void setDate | ( | int | pDay, |
| int | pMonth, | ||
| int | pYear | ||
| ) |
Set the date.
| pDay | Day to be set. |
| pMonth | Month to be set. |
| pYear | Year to be set. |
| void setTime | ( | int | pHour, |
| int | pMin, | ||
| int | pSec, | ||
| int | pMillisecond = 0 |
||
| ) |
Set the time.
| pHour | Hour to be set. |
| pMin | Minute to be set. |
| pSec | Second to be set. |
| pMillisecond | Millisecond to be set. |
| FbxString toString | ( | ) | const |
Get the string format from this date&time.
| bool fromString | ( | const char * | ) |
Get date&time from the string format.
True, if get date&time from the string format successfully, false otherwise.
|
static |
Get date&time from current date&time of GMT.