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

#include "oct-time.h"

Inheritance diagram for octave::sys::base_tm:
Collaboration diagram for octave::sys::base_tm:

Public Member Functions

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

Constructor & Destructor Documentation

◆ base_tm() [1/2]

octave::sys::base_tm::base_tm ( void  )
inline

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

◆ base_tm() [2/2]

octave::sys::base_tm::base_tm ( const base_tm tm)
inline

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

◆ ~base_tm()

virtual octave::sys::base_tm::~base_tm ( void  )
virtualdefault

Member Function Documentation

◆ asctime()

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

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

Referenced by octave::sys::time::ctime().

◆ gmtoff() [1/2]

long octave::sys::base_tm::gmtoff ( void  ) const
inline

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

Referenced by extract_tm(), and octave::sys::time::time().

◆ gmtoff() [2/2]

base_tm & octave::sys::base_tm::gmtoff ( long  v)

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

◆ hour() [1/2]

int octave::sys::base_tm::hour ( void  ) const
inline

◆ hour() [2/2]

base_tm & octave::sys::base_tm::hour ( int  v)

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

◆ init()

void octave::sys::base_tm::init ( void *  p)
protected

◆ isdst() [1/2]

int octave::sys::base_tm::isdst ( void  ) const
inline

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

Referenced by extract_tm(), and octave::sys::time::time().

◆ isdst() [2/2]

base_tm & octave::sys::base_tm::isdst ( int  v)

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

◆ mday() [1/2]

int octave::sys::base_tm::mday ( void  ) const
inline

◆ mday() [2/2]

base_tm & octave::sys::base_tm::mday ( int  v)

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

◆ min() [1/2]

int octave::sys::base_tm::min ( void  ) const
inline

◆ min() [2/2]

base_tm & octave::sys::base_tm::min ( int  v)

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

◆ mon() [1/2]

int octave::sys::base_tm::mon ( void  ) const
inline

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

Referenced by extract_tm(), and octave::sys::time::time().

◆ mon() [2/2]

base_tm & octave::sys::base_tm::mon ( int  v)

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

◆ operator=()

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

◆ sec() [1/2]

int octave::sys::base_tm::sec ( void  ) const
inline

◆ sec() [2/2]

base_tm & octave::sys::base_tm::sec ( int  v)

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

◆ strftime()

std::string octave::sys::base_tm::strftime ( const std::string fmt) const

◆ usec() [1/2]

int octave::sys::base_tm::usec ( void  ) const
inline

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

Referenced by extract_tm(), and octave::sys::time::time().

◆ usec() [2/2]

base_tm & octave::sys::base_tm::usec ( int  v)

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

◆ wday() [1/2]

int octave::sys::base_tm::wday ( void  ) const
inline

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

Referenced by extract_tm(), and octave::sys::time::time().

◆ wday() [2/2]

base_tm & octave::sys::base_tm::wday ( int  v)

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

◆ yday() [1/2]

int octave::sys::base_tm::yday ( void  ) const
inline

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

Referenced by extract_tm(), and octave::sys::time::time().

◆ yday() [2/2]

base_tm & octave::sys::base_tm::yday ( int  v)

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

◆ year() [1/2]

int octave::sys::base_tm::year ( void  ) const
inline

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

Referenced by extract_tm(), and octave::sys::time::time().

◆ year() [2/2]

base_tm & octave::sys::base_tm::year ( int  v)

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

◆ zone() [1/2]

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

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

Referenced by extract_tm(), and octave::sys::time::time().

◆ zone() [2/2]

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

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

References s.

Member Data Documentation

◆ m_gmtoff

long octave::sys::base_tm::m_gmtoff
protected

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

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

◆ m_hour

int octave::sys::base_tm::m_hour
protected

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

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

◆ m_isdst

int octave::sys::base_tm::m_isdst
protected

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

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

◆ m_mday

int octave::sys::base_tm::m_mday
protected

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

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

◆ m_min

int octave::sys::base_tm::m_min
protected

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

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

◆ m_mon

int octave::sys::base_tm::m_mon
protected

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

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

◆ m_sec

int octave::sys::base_tm::m_sec
protected

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

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

◆ m_usec

int octave::sys::base_tm::m_usec
protected

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

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

◆ m_wday

int octave::sys::base_tm::m_wday
protected

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

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

◆ m_yday

int octave::sys::base_tm::m_yday
protected

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

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

◆ m_year

int octave::sys::base_tm::m_year
protected

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

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

◆ m_zone

std::string octave::sys::base_tm::m_zone
protected

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

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


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