Loading...
Searching...
No Matches
SBDTypeDateTime Class Reference

This class implements the date time management.

Debugging

SBDTypeDateTimeData * dataPointer
 
virtual void print (unsigned int offset=0) const
 Prints the date time.
 
 SB_DECLARE_DATA (SBDTypeDateTime)
 

Constructors and destructors

 SBDTypeDateTime ()
 Constructs a date time.
 
 SBDTypeDateTime (unsigned long long millisecondsSinceEpoch)
 Constructs a date time.
 
 SBDTypeDateTime (const SBDTypeDateTime &dateTime)
 Copy constructor.
 
 SBDTypeDateTime (SBDTypeDateTime &&dateTime) noexcept
 Move constructor.
 
virtual ~SBDTypeDateTime ()
 Destructs the date time.
 

Serialization

bool isSerializable () const
 Returns true.
 
void serialize (SBCSerializer *serializer, const SBVersionNumber &sdkVersionNumber=SB_SDK_VERSION_NUMBER) const
 Serializes the color.
 
void unserialize (SBCSerializer *serializer, const SBVersionNumber &sdkVersionNumber=SB_SDK_VERSION_NUMBER)
 Unserializes the color.
 

Operators

SBDTypeDateTimeoperator= (const SBDTypeDateTime &color)
 Copy assignment.
 
SBDTypeDateTimeoperator= (SBDTypeDateTime &&color) noexcept
 Move assignment.
 
bool operator< (const SBDTypeDateTime &color) const
 
bool operator> (const SBDTypeDateTime &color) const
 
bool operator<= (const SBDTypeDateTime &color) const
 
bool operator>= (const SBDTypeDateTime &color) const
 
bool operator== (const SBDTypeDateTime &color) const
 
bool operator!= (const SBDTypeDateTime &color) const
 

Accessors

unsigned long long getMillisecondsSinceEpoch () const
 Returns the number of milliseconds since Epoch.
 
void setMillisecondsSinceEpoch (unsigned long long millisecondsSinceEpoch)
 Sets the number of milliseconds since Epoch.
 

Time

static SBDTypeDateTime currentDateTimeUTC ()
 Returns the current date time in UTC.