GNU Octave  8.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:
Collaboration diagram for base_tm:

Public Member Functions

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

Protected Member Functions

OCTAVE_API 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 184 of file oct-time.h.

Constructor & Destructor Documentation

◆ base_tm() [1/2]

base_tm::base_tm ( void  )
inline

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

◆ base_tm() [2/2]

base_tm::base_tm ( const base_tm tm)
inline

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

◆ ~base_tm()

virtual base_tm::~base_tm ( void  )
virtualdefault

Member Function Documentation

◆ asctime()

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

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

References strftime().

Referenced by time::ctime().

◆ gmtoff() [1/2]

base_tm & base_tm::gmtoff ( long  v)

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

◆ gmtoff() [2/2]

long base_tm::gmtoff ( void  ) const
inline

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

References m_gmtoff.

Referenced by time::time().

◆ hour() [1/2]

base_tm & base_tm::hour ( int  v)

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

◆ hour() [2/2]

int base_tm::hour ( void  ) const
inline

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

References m_hour.

Referenced by time::time().

◆ init()

void base_tm::init ( void *  p)
protected

◆ isdst() [1/2]

base_tm & base_tm::isdst ( int  v)

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

◆ isdst() [2/2]

int base_tm::isdst ( void  ) const
inline

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

References m_isdst.

Referenced by time::time().

◆ mday() [1/2]

base_tm & base_tm::mday ( int  v)

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

◆ mday() [2/2]

int base_tm::mday ( void  ) const
inline

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

References m_mday.

Referenced by time::time().

◆ min() [1/2]

base_tm & base_tm::min ( int  v)

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

◆ min() [2/2]

int base_tm::min ( void  ) const
inline

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

References m_min.

Referenced by time::time().

◆ mon() [1/2]

base_tm & base_tm::mon ( int  v)

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

◆ mon() [2/2]

int base_tm::mon ( void  ) const
inline

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

References m_mon.

Referenced by time::time().

◆ operator=()

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

◆ sec() [1/2]

base_tm & base_tm::sec ( int  v)

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

◆ sec() [2/2]

int base_tm::sec ( void  ) const
inline

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

References m_sec.

Referenced by time::time().

◆ strftime()

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

◆ usec() [1/2]

base_tm & base_tm::usec ( int  v)

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

◆ usec() [2/2]

int base_tm::usec ( void  ) const
inline

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

References m_usec.

Referenced by time::time().

◆ wday() [1/2]

base_tm & base_tm::wday ( int  v)

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

◆ wday() [2/2]

int base_tm::wday ( void  ) const
inline

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

References m_wday.

Referenced by time::time().

◆ yday() [1/2]

base_tm & base_tm::yday ( int  v)

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

◆ yday() [2/2]

int base_tm::yday ( void  ) const
inline

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

References m_yday.

Referenced by time::time().

◆ year() [1/2]

base_tm & base_tm::year ( int  v)

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

◆ year() [2/2]

int base_tm::year ( void  ) const
inline

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

References m_year.

Referenced by time::time().

◆ zone() [1/2]

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

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

◆ zone() [2/2]

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

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

References m_zone.

Referenced by time::time().

Member Data Documentation

◆ m_gmtoff

long base_tm::m_gmtoff
protected

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

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

◆ m_hour

int base_tm::m_hour
protected

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

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

◆ m_isdst

int base_tm::m_isdst
protected

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

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

◆ m_mday

int base_tm::m_mday
protected

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

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

◆ m_min

int base_tm::m_min
protected

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

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

◆ m_mon

int base_tm::m_mon
protected

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

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

◆ m_sec

int base_tm::m_sec
protected

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

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

◆ m_usec

int base_tm::m_usec
protected

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

Referenced by localtime::init(), gmtime::init(), operator=(), and usec().

◆ m_wday

int base_tm::m_wday
protected

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

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

◆ m_yday

int base_tm::m_yday
protected

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

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

◆ m_year

int base_tm::m_year
protected

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

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

◆ m_zone

std::string base_tm::m_zone
protected

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

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


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