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

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

Constructor & Destructor Documentation

◆ base_tm() [1/2]

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

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

◆ base_tm() [2/2]

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

Definition at line 199 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 257 of file oct-time.h.

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

◆ gmtoff() [1/2]

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

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

◆ gmtoff() [2/2]

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

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

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

◆ hour() [1/2]

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

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

◆ hour() [2/2]

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

◆ init()

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

◆ isdst() [1/2]

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

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

◆ isdst() [2/2]

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

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

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

◆ mday() [1/2]

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

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

◆ mday() [2/2]

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

◆ min() [1/2]

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

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

◆ min() [2/2]

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

◆ mon() [1/2]

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

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

◆ mon() [2/2]

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

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

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

◆ operator=()

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

◆ sec() [1/2]

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

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

◆ sec() [2/2]

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

◆ strftime()

◆ usec() [1/2]

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

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

◆ usec() [2/2]

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

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

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

◆ wday() [1/2]

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

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

◆ wday() [2/2]

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

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

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

◆ yday() [1/2]

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

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

◆ yday() [2/2]

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

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

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

◆ year() [1/2]

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

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

◆ year() [2/2]

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

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

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

◆ zone() [1/2]

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

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

◆ zone() [2/2]

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

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

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

Member Data Documentation

◆ m_gmtoff

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

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

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

◆ m_hour

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

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

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

◆ m_isdst

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

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

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

◆ m_mday

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

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

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

◆ m_min

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

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

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

◆ m_mon

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

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

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

◆ m_sec

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

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

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

◆ m_usec

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

Definition at line 263 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 284 of file oct-time.h.

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

◆ m_yday

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

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

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

◆ m_year

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

Definition at line 281 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 296 of file oct-time.h.

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


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