drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::NanoTimestamp Class Reference

#include <temporal.h>

Inheritance diagram for drizzled::NanoTimestamp:
[legend]
Collaboration diagram for drizzled::NanoTimestamp:
[legend]

Public Member Functions

bool is_valid () const
void to_timespec (struct timespec *to) const
Public Member Functions inherited from drizzled::Timestamp
bool operator== (const Date &rhs)
bool operator!= (const Date &rhs)
bool operator> (const Date &rhs)
bool operator>= (const Date &rhs)
bool operator< (const Date &rhs)
bool operator<= (const Date &rhs)
bool operator== (const DateTime &rhs)
bool operator!= (const DateTime &rhs)
bool operator> (const DateTime &rhs)
bool operator>= (const DateTime &rhs)
bool operator< (const DateTime &rhs)
bool operator<= (const DateTime &rhs)
bool operator== (const Timestamp &rhs)
bool operator!= (const Timestamp &rhs)
bool operator> (const Timestamp &rhs)
bool operator>= (const Timestamp &rhs)
bool operator< (const Timestamp &rhs)
bool operator<= (const Timestamp &rhs)
bool is_valid_timestamp () const
void to_time_t (time_t &to) const
Public Member Functions inherited from drizzled::DateTime
bool in_unix_epoch () const
void to_int32_t (int32_t *) const
bool from_int32_t (int32_t)
virtual int to_string (char *to, size_t to_len) const
bool from_string (const char *from, size_t from_len)
void to_int64_t (int64_t *to) const
bool from_time_t (const time_t from)
bool from_timeval (struct timeval &_timeval)
bool from_int64_t (const int64_t from, bool convert)
bool from_int64_t (const int64_t from)
void to_tm (struct tm *to) const
void to_decimal (type::Decimal *to) const
Public Member Functions inherited from drizzled::Date
const Date operator- (const Date &rhs)
const Date operator+ (const Date &rhs)
Date & operator+= (const Date &rhs)
Date & operator-= (const Date &rhs)
const Date operator- (const Time &rhs)
const Date operator+ (const Time &rhs)
Date & operator-= (const Time &rhs)
Date & operator+= (const Time &rhs)
const Date operator- (const DateTime &rhs)
const Date operator+ (const DateTime &rhs)
Date & operator+= (const DateTime &rhs)
Date & operator-= (const DateTime &rhs)
Date & operator= (const DateTime &rhs)
virtual bool is_valid_date () const
virtual bool is_valid_datetime () const
virtual bool is_valid_time () const
void to_julian_day_number (int64_t *to) const
bool from_julian_day_number (const int64_t from)
virtual bool from_tm (const struct tm *from)
Public Member Functions inherited from drizzled::Temporal
enum calendar calendar () const
void set_nseconds (const uint32_t nsecond)
uint32_t nseconds () const
void set_useconds (const uint32_t usecond)
uint32_t useconds () const
void set_epoch_seconds ()
void set_epoch_seconds (const uint32_t epoch_second)
time_t epoch_seconds () const
void set_seconds (const uint32_t second)
uint32_t seconds () const
void set_minutes (const uint32_t minute)
uint32_t minutes () const
void set_hours (const uint32_t hour)
uint32_t hours () const
void set_days (const uint32_t day)
uint32_t days () const
void set_months (const uint32_t month)
uint32_t months () const
void set_years (const uint32_t year)
uint32_t years () const
bool overflow () const

Additional Inherited Members

Static Public Attributes inherited from drizzled::DateTime
static const int MAX_STRING_LENGTH = 27
Static Public Attributes inherited from drizzled::Date
static const int MAX_STRING_LENGTH = 11
Protected Member Functions inherited from drizzled::Temporal
uint64_t _cumulative_seconds_in_time () const
void _reset ()
Protected Attributes inherited from drizzled::Temporal
enum calendar _calendar
uint32_t _years
uint32_t _months
uint32_t _days
uint32_t _hours
uint32_t _minutes
uint32_t _seconds
time_t _epoch_seconds
uint32_t _useconds
uint32_t _nseconds
bool _overflow

Detailed Description

Class representing temporal components in the UNIX epoch with an additional nanosecond component.

Definition at line 792 of file temporal.h.

Constructor & Destructor Documentation

◆ NanoTimestamp()

drizzled::NanoTimestamp::NanoTimestamp ( )
inline

Definition at line 795 of file temporal.h.

Member Function Documentation

◆ is_valid()

bool drizzled::NanoTimestamp::is_valid ( ) const
virtual

Returns whether the temporal value is valid nano-timestamp.

Reimplemented from drizzled::Timestamp.

Definition at line 1368 of file temporal.cc.

◆ to_timespec()

void drizzled::NanoTimestamp::to_timespec ( struct timespec * to) const

Fills a supplied timespec pointer with an representation of the NanoTimestamp value.

Returns whether the conversion was successful.

Parameters
timespecto fill.

Definition at line 1309 of file temporal.cc.


The documentation for this class was generated from the following files: