GNU Octave  6.2.0
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
 
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
 
strptimeoperator= (const strptime &s)
 
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 std::string &str, const std::string &fmt)
 

Private Attributes

int nchars
 

Detailed Description

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

◆ strptime() [2/2]

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

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

Referenced by Fstrptime().

◆ 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::strptime::init ( const std::string &  str,
const std::string &  fmt 
)
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=()

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

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

References nchars, and 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

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

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


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