Lightweight 0.20261105.1
Loading...
Searching...
No Matches
Lightweight::SqlTimestampStorage Struct Reference

#include <SqlValueStorage.hpp>

Public Attributes

std::int16_t year
 Year, may be negative.
 
std::uint16_t month
 Month of the year, 1-12.
 
std::uint16_t day
 Day of the month, 1-31.
 
std::uint16_t hour
 Hour of the day, 0-23.
 
std::uint16_t minute
 Minute of the hour, 0-59.
 
std::uint16_t second
 Second of the minute, 0-59.
 
std::uint32_t fraction
 Fractional seconds in nanoseconds.
 

Detailed Description

Lightweight-owned storage of a SQL TIMESTAMP / DATETIME value.

Layout-identical to ODBC's SQL_TIMESTAMP_STRUCT.

Definition at line 30 of file SqlValueStorage.hpp.

Member Data Documentation

◆ year

std::int16_t Lightweight::SqlTimestampStorage::year

◆ month

std::uint16_t Lightweight::SqlTimestampStorage::month

Month of the year, 1-12.

Definition at line 35 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlDateTime::month().

◆ day

std::uint16_t Lightweight::SqlTimestampStorage::day

Day of the month, 1-31.

Definition at line 37 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlDateTime::day().

◆ hour

std::uint16_t Lightweight::SqlTimestampStorage::hour

Hour of the day, 0-23.

Definition at line 39 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlDateTime::hour().

◆ minute

std::uint16_t Lightweight::SqlTimestampStorage::minute

Minute of the hour, 0-59.

Definition at line 41 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlDateTime::minute().

◆ second

std::uint16_t Lightweight::SqlTimestampStorage::second

Second of the minute, 0-59.

Definition at line 43 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlDateTime::second().

◆ fraction

std::uint32_t Lightweight::SqlTimestampStorage::fraction

Fractional seconds in nanoseconds.

Definition at line 45 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlDateTime::nanosecond().


The documentation for this struct was generated from the following file: