top | up | prev | next

Timestamp Class

Definition at line 145 of Time.hpp

Constructors

Timestamp()
Timestamp(Date date_)
Timestamp(Date date_, int32_t secs_)
Timestamp(const DateTime& dateTime_)
Timestamp(const DateTime& dateTime_, int32_t nanosecs_)

Member Functions

const DateTime& GetDateTime() const
int32_t Nanoseconds() const
std::string ToString() const

Member Variables

DateTime dateTime
int32_t nanosecs

Constructor Details

Timestamp Constructor

soulng::util::Timestamp::Timestamp()

Definition at line 148 of Time.hpp :
148 : dateTime()nanosecs(0) {}


Timestamp Constructor

soulng::util::Timestamp::Timestamp(Date date_)

Definition at line 149 of Time.hpp :
149 : dateTime(date_)nanosecs(0) {}


Timestamp Constructor

soulng::util::Timestamp::Timestamp(Date date_, int32_t secs_)

Definition at line 150 of Time.hpp :
150 : dateTime(date_secs_)nanosecs(0) {}


Timestamp Constructor

soulng::util::Timestamp::Timestamp(const DateTime & dateTime_)

Definition at line 151 of Time.hpp :
151 : dateTime(dateTime_)nanosecs(0) {}


Timestamp Constructor

soulng::util::Timestamp::Timestamp(const DateTime & dateTime_, int32_t nanosecs_)

Definition at line 152 of Time.hpp :
152 : dateTime(dateTime_)nanosecs(nanosecs_) {}


Member Function Details

GetDateTime Member Function

const DateTime & soulng::util::Timestamp::GetDateTime() const

Definition at line 153 of Time.hpp :
153 { return dateTime; }


Nanoseconds Member Function

int32_t soulng::util::Timestamp::Nanoseconds() const

Definition at line 154 of Time.hpp :
154 { return nanosecs; }


ToString Member Function

std::string soulng::util::Timestamp::ToString() const

Definition at line 369 of Time.cpp :
370 {
371     std::string s(dateTime.ToString());
372     s.append(1'.').append(Format(std::to_string(nanosecs)9FormatWidth::exactFormatJustify::right'0'));
373     return s;
374 }


Declaration at line 155 of Time.hpp

Calls: soulng::util::DateTime::ToString


top | up | prev | next