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

#include "oct-time.h"

Inheritance diagram for octave::sys::localtime:
Collaboration diagram for octave::sys::localtime:

Public Member Functions

 localtime (const localtime &t)
 
 localtime (const time &ot)
 
 localtime (void)
 
 ~localtime (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
 
localtimeoperator= (const localtime &t)
 
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
 

Private Member Functions

void init (const time &ot)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ localtime() [1/3]

octave::sys::localtime::localtime ( void  )
inline

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

◆ localtime() [2/3]

octave::sys::localtime::localtime ( const time ot)
inline

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

◆ localtime() [3/3]

octave::sys::localtime::localtime ( const localtime t)
inline

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

◆ ~localtime()

octave::sys::localtime::~localtime ( void  )
default

Member Function Documentation

◆ asctime()

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

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)
inherited

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

◆ gmtoff() [2/2]

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

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)
inherited

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

◆ hour() [2/2]

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

◆ init() [1/2]

void octave::sys::localtime::init ( const time ot)
private

◆ init() [2/2]

◆ isdst() [1/2]

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

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

◆ isdst() [2/2]

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

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)
inherited

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

◆ mday() [2/2]

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

◆ min() [1/2]

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

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

◆ min() [2/2]

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

◆ mon() [1/2]

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

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

◆ mon() [2/2]

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

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

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

◆ operator=()

localtime& octave::sys::localtime::operator= ( const localtime t)
inline

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

References octave::sys::base_tm::operator=().

◆ sec() [1/2]

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

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

◆ sec() [2/2]

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

◆ strftime()

◆ usec() [1/2]

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

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

◆ usec() [2/2]

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

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)
inherited

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

◆ wday() [2/2]

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

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)
inherited

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

◆ yday() [2/2]

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

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)
inherited

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

◆ year() [2/2]

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

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)
inherited

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

◆ zone() [2/2]

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

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
protectedinherited

◆ m_hour

int octave::sys::base_tm::m_hour
protectedinherited

◆ m_isdst

int octave::sys::base_tm::m_isdst
protectedinherited

◆ m_mday

int octave::sys::base_tm::m_mday
protectedinherited

◆ m_min

int octave::sys::base_tm::m_min
protectedinherited

◆ m_mon

int octave::sys::base_tm::m_mon
protectedinherited

◆ m_sec

int octave::sys::base_tm::m_sec
protectedinherited

◆ m_usec

int octave::sys::base_tm::m_usec
protectedinherited

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

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

◆ m_wday

int octave::sys::base_tm::m_wday
protectedinherited

◆ m_yday

int octave::sys::base_tm::m_yday
protectedinherited

◆ m_year

int octave::sys::base_tm::m_year
protectedinherited

◆ m_zone

std::string octave::sys::base_tm::m_zone
protectedinherited

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