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

#include "oct-time.h"

Inheritance diagram for octave::sys::strptime:
Collaboration diagram for octave::sys::strptime:

Public Member Functions

 strptime (const std::string &str, const std::string &fmt)
 
 strptime (const strptime &s)
 
 ~strptime (void)=default
 
std::string asctime (void) const
 
int characters_converted (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)
 
strptimeoperator= (const strptime &s)
 
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
 

Private Member Functions

void init (const std::string &str, const std::string &fmt)
 

Private Attributes

int nchars
 

Detailed Description

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

Constructor & Destructor Documentation

◆ strptime() [1/2]

octave::sys::strptime::strptime ( const std::string str,
const std::string fmt 
)
inline

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

References str.

◆ strptime() [2/2]

octave::sys::strptime::strptime ( const strptime s)
inline

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

◆ ~strptime()

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

Member Function Documentation

◆ asctime()

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

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

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

◆ characters_converted()

int octave::sys::strptime::characters_converted ( void  ) const
inline

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

◆ gmtoff() [1/2]

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

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

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

◆ hour() [1/2]

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

◆ hour() [2/2]

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

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

◆ init() [1/2]

◆ init() [2/2]

void octave::sys::strptime::init ( const std::string str,
const std::string fmt 
)
private

◆ isdst() [1/2]

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

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

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

◆ mday() [1/2]

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

◆ mday() [2/2]

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

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

◆ min() [1/2]

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

◆ min() [2/2]

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

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

◆ mon() [1/2]

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

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

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

◆ operator=()

strptime& octave::sys::strptime::operator= ( const strptime s)
inline

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

References octave::sys::base_tm::operator=(), and s.

◆ sec() [1/2]

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

◆ sec() [2/2]

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

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

◆ strftime()

◆ usec() [1/2]

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

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

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

◆ wday() [1/2]

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

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

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

◆ yday() [1/2]

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

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

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

◆ year() [1/2]

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

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

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

◆ zone() [1/2]

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

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

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

References s.

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

◆ 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

◆ nchars

int octave::sys::strptime::nchars
private

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

Referenced by init().


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