Web Analytics Made Easy - Statcounter
Skip to content

Class SBDTypeDateTime#

ClassList > SBDTypeDateTime

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
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.

SBDTypeDateTime::SBDTypeDateTime () 


function SBDTypeDateTime [2/4]#

Constructs a date time.

SBDTypeDateTime::SBDTypeDateTime (
    unsigned long long millisecondsSinceEpoch
) 


function SBDTypeDateTime [3/4]#

Copy constructor.

SBDTypeDateTime::SBDTypeDateTime (
    const SBDTypeDateTime & dateTime
) 


function SBDTypeDateTime [4/4]#

Move constructor.

SBDTypeDateTime::SBDTypeDateTime (
    SBDTypeDateTime && dateTime
) noexcept


function SB_DECLARE_DATA#

SBDTypeDateTime::SB_DECLARE_DATA (
    SBDTypeDateTime
) 

function getMillisecondsSinceEpoch#

Returns the number of milliseconds since Epoch.

unsigned long long SBDTypeDateTime::getMillisecondsSinceEpoch () const


function isSerializable#

Returns true.

bool SBDTypeDateTime::isSerializable () const


function operator!=#

bool SBDTypeDateTime::operator!= (
    const SBDTypeDateTime & color
) const

function operator<#

bool SBDTypeDateTime::operator< (
    const SBDTypeDateTime & color
) const

function operator<=#

bool SBDTypeDateTime::operator<= (
    const SBDTypeDateTime & color
) const

function operator=#

Copy assignment.

SBDTypeDateTime & SBDTypeDateTime::operator= (
    const SBDTypeDateTime & color
) 


function operator=#

Move assignment.

SBDTypeDateTime & SBDTypeDateTime::operator= (
    SBDTypeDateTime && color
) noexcept


function operator==#

bool SBDTypeDateTime::operator== (
    const SBDTypeDateTime & color
) const

function operator>#

bool SBDTypeDateTime::operator> (
    const SBDTypeDateTime & color
) const

function operator>=#

bool SBDTypeDateTime::operator>= (
    const SBDTypeDateTime & color
) const

function print#

Prints the date time.

virtual void SBDTypeDateTime::print (
    unsigned int offset=0
) const


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.

void SBDTypeDateTime::setMillisecondsSinceEpoch (
    unsigned long long millisecondsSinceEpoch
) 


function unserialize#

Unserializes the color.

void SBDTypeDateTime::unserialize (
    SBCSerializer * serializer,
    const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER
) 


function ~SBDTypeDateTime#

Destructs the date time.

virtual SBDTypeDateTime::~SBDTypeDateTime () 


Public Static Functions Documentation#

function currentDateTimeUTC#

Returns the current date time in UTC.

static SBDTypeDateTime SBDTypeDateTime::currentDateTimeUTC () 


Protected Attributes Documentation#

variable dataPointer#

SBDTypeDateTimeData* dataPointer;