GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
base_tm Class Reference

#include "oct-time.h"

Inheritance diagram for base_tm:
gmtime localtime strptime

Public Member Functions

 base_tm ()
 
 base_tm (const base_tm &tm)
 
virtual ~base_tm ()=default
 
std::string asctime () const
 
long gmtoff () const
 
base_tmgmtoff (long v)
 
int hour () const
 
base_tmhour (int v)
 
int isdst () const
 
base_tmisdst (int v)
 
int mday () const
 
base_tmmday (int v)
 
int min () const
 
base_tmmin (int v)
 
int mon () const
 
base_tmmon (int v)
 
base_tmoperator= (const base_tm &tm)
 
int sec () const
 
base_tmsec (int v)
 
std::string strftime (const std::string &fmt) const
 
int usec () const
 
base_tmusec (int v)
 
int wday () const
 
base_tmwday (int v)
 
int yday () const
 
base_tmyday (int v)
 
int year () const
 
base_tmyear (int v)
 
std::string zone () const
 
base_tmzone (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
 

Detailed Description

Definition at line 196 of file oct-time.h.

Constructor & Destructor Documentation

◆ base_tm() [1/2]

base_tm::base_tm ( )
inline

Definition at line 201 of file oct-time.h.

◆ base_tm() [2/2]

base_tm::base_tm ( const base_tm tm)
inline

Definition at line 207 of file oct-time.h.

◆ ~base_tm()

virtual base_tm::~base_tm ( )
virtualdefault

Member Function Documentation

◆ asctime()

std::string base_tm::asctime ( ) const
inline

Definition at line 265 of file oct-time.h.

References strftime().

Referenced by time::ctime().

◆ gmtoff() [1/2]

long base_tm::gmtoff ( ) const
inline

Definition at line 247 of file oct-time.h.

References m_gmtoff.

Referenced by time::time().

◆ gmtoff() [2/2]

base_tm & base_tm::gmtoff ( long  v)

Definition at line 159 of file oct-time.cc.

◆ hour() [1/2]

int base_tm::hour ( ) const
inline

Definition at line 240 of file oct-time.h.

References m_hour.

Referenced by time::time().

◆ hour() [2/2]

base_tm & base_tm::hour ( int  v)

Definition at line 151 of file oct-time.cc.

◆ init()

void base_tm::init ( void *  p)
protected

◆ isdst() [1/2]

int base_tm::isdst ( ) const
inline

Definition at line 246 of file oct-time.h.

References m_isdst.

Referenced by time::time().

◆ isdst() [2/2]

base_tm & base_tm::isdst ( int  v)

Definition at line 158 of file oct-time.cc.

◆ mday() [1/2]

int base_tm::mday ( ) const
inline

Definition at line 241 of file oct-time.h.

References m_mday.

Referenced by time::time().

◆ mday() [2/2]

base_tm & base_tm::mday ( int  v)

Definition at line 152 of file oct-time.cc.

◆ min() [1/2]

int base_tm::min ( ) const
inline

Definition at line 239 of file oct-time.h.

References m_min.

Referenced by time::time().

◆ min() [2/2]

base_tm & base_tm::min ( int  v)

Definition at line 150 of file oct-time.cc.

◆ mon() [1/2]

int base_tm::mon ( ) const
inline

Definition at line 242 of file oct-time.h.

References m_mon.

Referenced by time::time().

◆ mon() [2/2]

base_tm & base_tm::mon ( int  v)

Definition at line 153 of file oct-time.cc.

◆ operator=()

base_tm& base_tm::operator= ( const base_tm tm)
inline

Definition at line 214 of file oct-time.h.

References m_gmtoff, m_hour, m_isdst, m_mday, m_min, m_mon, m_sec, m_usec, m_wday, m_yday, m_year, and m_zone.

Referenced by localtime::operator=().

◆ sec() [1/2]

int base_tm::sec ( ) const
inline

Definition at line 238 of file oct-time.h.

References m_sec.

Referenced by time::time().

◆ sec() [2/2]

base_tm & base_tm::sec ( int  v)

Definition at line 149 of file oct-time.cc.

◆ strftime()

std::string base_tm::strftime ( const std::string &  fmt) const

Definition at line 173 of file oct-time.cc.

References m_gmtoff, m_hour, m_isdst, m_mday, m_min, m_mon, m_sec, m_wday, m_yday, and m_year.

Referenced by asctime().

◆ usec() [1/2]

int base_tm::usec ( ) const
inline

Definition at line 237 of file oct-time.h.

References m_usec.

◆ usec() [2/2]

base_tm & base_tm::usec ( int  v)

Definition at line 148 of file oct-time.cc.

◆ wday() [1/2]

int base_tm::wday ( ) const
inline

Definition at line 244 of file oct-time.h.

References m_wday.

Referenced by time::time().

◆ wday() [2/2]

base_tm & base_tm::wday ( int  v)

Definition at line 156 of file oct-time.cc.

◆ yday() [1/2]

int base_tm::yday ( ) const
inline

Definition at line 245 of file oct-time.h.

References m_yday.

Referenced by time::time().

◆ yday() [2/2]

base_tm & base_tm::yday ( int  v)

Definition at line 157 of file oct-time.cc.

◆ year() [1/2]

int base_tm::year ( ) const
inline

Definition at line 243 of file oct-time.h.

References m_year.

Referenced by time::time().

◆ year() [2/2]

base_tm & base_tm::year ( int  v)

Definition at line 155 of file oct-time.cc.

◆ zone() [1/2]

std::string base_tm::zone ( ) const
inline

Definition at line 248 of file oct-time.h.

References m_zone.

Referenced by time::time().

◆ zone() [2/2]

base_tm & base_tm::zone ( const std::string &  s)

Definition at line 162 of file oct-time.cc.

Member Data Documentation

◆ m_gmtoff

long base_tm::m_gmtoff
protected

Definition at line 301 of file oct-time.h.

Referenced by gmtoff(), init(), operator=(), and strftime().

◆ m_hour

int base_tm::m_hour
protected

Definition at line 280 of file oct-time.h.

Referenced by hour(), init(), operator=(), and strftime().

◆ m_isdst

int base_tm::m_isdst
protected

Definition at line 298 of file oct-time.h.

Referenced by init(), isdst(), operator=(), and strftime().

◆ m_mday

int base_tm::m_mday
protected

Definition at line 283 of file oct-time.h.

Referenced by init(), mday(), operator=(), and strftime().

◆ m_min

int base_tm::m_min
protected

Definition at line 277 of file oct-time.h.

Referenced by init(), min(), operator=(), and strftime().

◆ m_mon

int base_tm::m_mon
protected

Definition at line 286 of file oct-time.h.

Referenced by init(), mon(), operator=(), and strftime().

◆ m_sec

int base_tm::m_sec
protected

Definition at line 274 of file oct-time.h.

Referenced by init(), operator=(), sec(), and strftime().

◆ m_usec

int base_tm::m_usec
protected

Definition at line 271 of file oct-time.h.

Referenced by operator=(), and usec().

◆ m_wday

int base_tm::m_wday
protected

Definition at line 292 of file oct-time.h.

Referenced by init(), operator=(), strftime(), and wday().

◆ m_yday

int base_tm::m_yday
protected

Definition at line 295 of file oct-time.h.

Referenced by init(), operator=(), strftime(), and yday().

◆ m_year

int base_tm::m_year
protected

Definition at line 289 of file oct-time.h.

Referenced by init(), operator=(), strftime(), and year().

◆ m_zone

std::string base_tm::m_zone
protected

Definition at line 304 of file oct-time.h.

Referenced by init(), operator=(), and zone().


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