#include "oct-time.h"
Public Member Functions | |
base_tm () | |
base_tm (const base_tm &tm) | |
virtual | ~base_tm ()=default |
std::string | asctime () const |
long | gmtoff () const |
base_tm & | gmtoff (long v) |
int | hour () const |
base_tm & | hour (int v) |
int | isdst () const |
base_tm & | isdst (int v) |
int | mday () const |
base_tm & | mday (int v) |
int | min () const |
base_tm & | min (int v) |
int | mon () const |
base_tm & | mon (int v) |
base_tm & | operator= (const base_tm &tm) |
int | sec () const |
base_tm & | sec (int v) |
std::string | strftime (const std::string &fmt) const |
int | usec () const |
base_tm & | usec (int v) |
int | wday () const |
base_tm & | wday (int v) |
int | yday () const |
base_tm & | yday (int v) |
int | year () const |
base_tm & | year (int v) |
std::string | zone () const |
base_tm & | zone (const std::string &s) |
Protected Member Functions | |
void | init (void *p) |
Protected Attributes | |
long | m_gmtoff |
int | m_hour |
int | m_isdst |
int | m_mday |
int | m_min |
int | m_mon |
int | m_sec |
int | m_usec |
int | m_wday |
int | m_yday |
int | m_year |
std::string | m_zone |
Definition at line 196 of file oct-time.h.
|
inline |
Definition at line 201 of file oct-time.h.
|
inline |
Definition at line 207 of file oct-time.h.
|
virtualdefault |
|
inline |
|
inline |
base_tm & base_tm::gmtoff | ( | long | v | ) |
Definition at line 159 of file oct-time.cc.
|
inline |
base_tm & base_tm::hour | ( | int | v | ) |
Definition at line 151 of file oct-time.cc.
|
protected |
Definition at line 231 of file oct-time.cc.
References m_gmtoff, m_hour, m_isdst, m_mday, m_min, m_mon, m_sec, m_wday, m_yday, m_year, m_zone, and u8_from_wstring().
Referenced by gmtime::gmtime(), localtime::localtime(), and strptime::strptime().
|
inline |
base_tm & base_tm::isdst | ( | int | v | ) |
Definition at line 158 of file oct-time.cc.
|
inline |
base_tm & base_tm::mday | ( | int | v | ) |
Definition at line 152 of file oct-time.cc.
|
inline |
base_tm & base_tm::min | ( | int | v | ) |
Definition at line 150 of file oct-time.cc.
|
inline |
base_tm & base_tm::mon | ( | int | v | ) |
Definition at line 153 of file oct-time.cc.
|
inline |
base_tm & base_tm::sec | ( | int | v | ) |
Definition at line 149 of file oct-time.cc.
std::string base_tm::strftime | ( | const std::string & | fmt | ) | const |
|
inline |
Definition at line 237 of file oct-time.h.
References m_usec.
base_tm & base_tm::usec | ( | int | v | ) |
Definition at line 148 of file oct-time.cc.
|
inline |
base_tm & base_tm::wday | ( | int | v | ) |
Definition at line 156 of file oct-time.cc.
|
inline |
base_tm & base_tm::yday | ( | int | v | ) |
Definition at line 157 of file oct-time.cc.
|
inline |
base_tm & base_tm::year | ( | int | v | ) |
Definition at line 155 of file oct-time.cc.
|
inline |
base_tm & base_tm::zone | ( | const std::string & | s | ) |
Definition at line 162 of file oct-time.cc.
|
protected |
Definition at line 301 of file oct-time.h.
Referenced by gmtoff(), init(), operator=(), and strftime().
|
protected |
Definition at line 280 of file oct-time.h.
Referenced by hour(), init(), operator=(), and strftime().
|
protected |
Definition at line 298 of file oct-time.h.
Referenced by init(), isdst(), operator=(), and strftime().
|
protected |
Definition at line 283 of file oct-time.h.
Referenced by init(), mday(), operator=(), and strftime().
|
protected |
Definition at line 277 of file oct-time.h.
Referenced by init(), min(), operator=(), and strftime().
|
protected |
Definition at line 286 of file oct-time.h.
Referenced by init(), mon(), operator=(), and strftime().
|
protected |
Definition at line 274 of file oct-time.h.
Referenced by init(), operator=(), sec(), and strftime().
|
protected |
Definition at line 271 of file oct-time.h.
Referenced by operator=(), and usec().
|
protected |
Definition at line 292 of file oct-time.h.
Referenced by init(), operator=(), strftime(), and wday().
|
protected |
Definition at line 295 of file oct-time.h.
Referenced by init(), operator=(), strftime(), and yday().
|
protected |
Definition at line 289 of file oct-time.h.
Referenced by init(), operator=(), strftime(), and year().
|
protected |
Definition at line 304 of file oct-time.h.
Referenced by init(), operator=(), and zone().