Class SBDTypeDateTime#
This class implements the date time management. More...
#include "SBDTypeDateTime.hpp"
Public Functions#
Type | Name |
---|---|
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. |
|
SB_DECLARE_DATA (SBDTypeDateTime) |
|
unsigned long long | getMillisecondsSinceEpoch () const Returns the number of milliseconds since Epoch. |
bool | isSerializable () const Returns true __ |
bool | operator!= (const SBDTypeDateTime & color) const The inequality operator. |
bool | operator< (const SBDTypeDateTime & color) const The "less than" operator. |
bool | operator<= (const SBDTypeDateTime & color) const The "less or equal than" operator. |
SBDTypeDateTime & | operator= (const SBDTypeDateTime & color) Copy assignment. |
SBDTypeDateTime & | operator= (SBDTypeDateTime && color) noexcept Move assignment. |
bool | operator== (const SBDTypeDateTime & color) const The equality operator. |
bool | operator> (const SBDTypeDateTime & color) const The "greater than" operator. |
bool | operator>= (const SBDTypeDateTime & color) const The "greater or equal than" operator. |
virtual void | print (unsigned int offset=0) const Prints the date time. |
void | serialize (SBCSerializer * serializer, const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER) const Serializes the color. |
void | setMillisecondsSinceEpoch (unsigned long long millisecondsSinceEpoch) Sets the number of milliseconds since Epoch. |
void | unserialize (SBCSerializer * serializer, const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER) Unserializes the color. |
virtual | ~SBDTypeDateTime () Destructs the date time. |
Public Static Functions#
Type | Name |
---|---|
SBDTypeDateTime | currentDateTimeUTC () Returns the current date time in UTC. |
Protected Attributes#
Type | Name |
---|---|
SBDTypeDateTimeData * | dataPointer A pointer to the private data. |
Detailed Description#
Short name: SBDateTime
Public Functions Documentation#
function SBDTypeDateTime [1/4]#
Constructs a date time.
function SBDTypeDateTime [2/4]#
Constructs a date time.
function SBDTypeDateTime [3/4]#
Copy constructor.
function SBDTypeDateTime [4/4]#
Move constructor.
function SB_DECLARE_DATA#
function getMillisecondsSinceEpoch#
Returns the number of milliseconds since Epoch.
function isSerializable#
Returns true
__
function operator!=#
The inequality operator.
function operator<#
The "less than" operator.
function operator<=#
The "less or equal than" operator.
function operator=#
Copy assignment.
function operator=#
Move assignment.
function operator==#
The equality operator.
function operator>#
The "greater than" operator.
function operator>=#
The "greater or equal than" operator.
function print#
Prints the date time.
function serialize#
Serializes the color.
void SBDTypeDateTime::serialize (
SBCSerializer * serializer,
const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER
) const
function setMillisecondsSinceEpoch#
Sets the number of milliseconds since Epoch.
function unserialize#
Unserializes the color.
void SBDTypeDateTime::unserialize (
SBCSerializer * serializer,
const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER
)
function ~SBDTypeDateTime#
Destructs the date time.
Public Static Functions Documentation#
function currentDateTimeUTC#
Returns the current date time in UTC.
Protected Attributes Documentation#
variable dataPointer#
A pointer to the private data.