Class SBDTypeDateTime#
#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 |
bool | operator< (const SBDTypeDateTime & color) const |
bool | operator<= (const SBDTypeDateTime & color) const |
SBDTypeDateTime & | operator= (const SBDTypeDateTime & color) Copy assignment. |
SBDTypeDateTime & | operator= (SBDTypeDateTime && color) noexcept Move assignment. |
bool | operator== (const SBDTypeDateTime & color) const |
bool | operator> (const SBDTypeDateTime & color) const |
bool | operator>= (const SBDTypeDateTime & color) const |
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 |
Detailed Description#
This class implements the date time management.
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!=#
function operator<#
function operator<=#
function operator=#
Copy assignment.
function operator=#
Move assignment.
function operator==#
function operator>#
function 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.