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

#include "oct-time.h"

Inheritance diagram for localtime:
Collaboration diagram for localtime:

Public Member Functions

 localtime (const localtime &t)
 
 localtime (const time &ot)
 
 localtime (void)
 
 ~localtime (void)=default
 
std::string asctime (void) const
 
OCTAVE_API base_tmgmtoff (long v)
 
long gmtoff (void) const
 
OCTAVE_API base_tmhour (int v)
 
int hour (void) const
 
OCTAVE_API base_tmisdst (int v)
 
int isdst (void) const
 
OCTAVE_API base_tmmday (int v)
 
int mday (void) const
 
OCTAVE_API base_tmmin (int v)
 
int min (void) const
 
OCTAVE_API base_tmmon (int v)
 
int mon (void) const
 
localtimeoperator= (const localtime &t)
 
OCTAVE_API base_tmsec (int v)
 
int sec (void) const
 
OCTAVE_API std::string strftime (const std::string &fmt) const
 
OCTAVE_API base_tmusec (int v)
 
int usec (void) const
 
OCTAVE_API base_tmwday (int v)
 
int wday (void) const
 
OCTAVE_API base_tmyday (int v)
 
int yday (void) const
 
OCTAVE_API base_tmyear (int v)
 
int year (void) const
 
OCTAVE_API base_tmzone (const std::string &s)
 
std::string zone (void) const
 

Protected Member Functions

OCTAVE_API 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

OCTAVE_API void init (const time &ot)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ localtime() [1/3]

localtime::localtime ( void  )
inline

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

References base_tm::init().

◆ localtime() [2/3]

localtime::localtime ( const time ot)
inline

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

References base_tm::init().

◆ localtime() [3/3]

localtime::localtime ( const localtime t)
inline

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

◆ ~localtime()

localtime::~localtime ( void  )
default

Member Function Documentation

◆ asctime()

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

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

References base_tm::strftime().

Referenced by time::ctime().

◆ gmtoff() [1/2]

base_tm & base_tm::gmtoff ( long  v)
inherited

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

◆ gmtoff() [2/2]

long base_tm::gmtoff ( void  ) const
inlineinherited

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

References base_tm::m_gmtoff.

Referenced by time::time().

◆ hour() [1/2]

base_tm & base_tm::hour ( int  v)
inherited

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

◆ hour() [2/2]

int base_tm::hour ( void  ) const
inlineinherited

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

References base_tm::m_hour.

Referenced by time::time().

◆ init() [1/2]

void localtime::init ( const time ot)
private

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

References base_tm::init(), base_tm::m_usec, time::unix_time(), and time::usec().

◆ init() [2/2]

◆ isdst() [1/2]

base_tm & base_tm::isdst ( int  v)
inherited

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

◆ isdst() [2/2]

int base_tm::isdst ( void  ) const
inlineinherited

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

References base_tm::m_isdst.

Referenced by time::time().

◆ mday() [1/2]

base_tm & base_tm::mday ( int  v)
inherited

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

◆ mday() [2/2]

int base_tm::mday ( void  ) const
inlineinherited

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

References base_tm::m_mday.

Referenced by time::time().

◆ min() [1/2]

base_tm & base_tm::min ( int  v)
inherited

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

◆ min() [2/2]

int base_tm::min ( void  ) const
inlineinherited

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

References base_tm::m_min.

Referenced by time::time().

◆ mon() [1/2]

base_tm & base_tm::mon ( int  v)
inherited

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

◆ mon() [2/2]

int base_tm::mon ( void  ) const
inlineinherited

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

References base_tm::m_mon.

Referenced by time::time().

◆ operator=()

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

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

References base_tm::operator=().

◆ sec() [1/2]

base_tm & base_tm::sec ( int  v)
inherited

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

◆ sec() [2/2]

int base_tm::sec ( void  ) const
inlineinherited

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

References base_tm::m_sec.

Referenced by time::time().

◆ strftime()

◆ usec() [1/2]

base_tm & base_tm::usec ( int  v)
inherited

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

◆ usec() [2/2]

int base_tm::usec ( void  ) const
inlineinherited

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

References base_tm::m_usec.

Referenced by time::time().

◆ wday() [1/2]

base_tm & base_tm::wday ( int  v)
inherited

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

◆ wday() [2/2]

int base_tm::wday ( void  ) const
inlineinherited

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

References base_tm::m_wday.

Referenced by time::time().

◆ yday() [1/2]

base_tm & base_tm::yday ( int  v)
inherited

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

◆ yday() [2/2]

int base_tm::yday ( void  ) const
inlineinherited

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

References base_tm::m_yday.

Referenced by time::time().

◆ year() [1/2]

base_tm & base_tm::year ( int  v)
inherited

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

◆ year() [2/2]

int base_tm::year ( void  ) const
inlineinherited

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

References base_tm::m_year.

Referenced by time::time().

◆ zone() [1/2]

base_tm & base_tm::zone ( const std::string &  s)
inherited

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

◆ zone() [2/2]

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

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

References base_tm::m_zone.

Referenced by time::time().

Member Data Documentation

◆ m_gmtoff

long base_tm::m_gmtoff
protectedinherited

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

Referenced by base_tm::gmtoff(), base_tm::init(), base_tm::operator=(), and base_tm::strftime().

◆ m_hour

int base_tm::m_hour
protectedinherited

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

Referenced by base_tm::hour(), base_tm::init(), base_tm::operator=(), and base_tm::strftime().

◆ m_isdst

int base_tm::m_isdst
protectedinherited

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

Referenced by base_tm::init(), base_tm::isdst(), base_tm::operator=(), and base_tm::strftime().

◆ m_mday

int base_tm::m_mday
protectedinherited

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

Referenced by base_tm::init(), base_tm::mday(), base_tm::operator=(), and base_tm::strftime().

◆ m_min

int base_tm::m_min
protectedinherited

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

Referenced by base_tm::init(), base_tm::min(), base_tm::operator=(), and base_tm::strftime().

◆ m_mon

int base_tm::m_mon
protectedinherited

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

Referenced by base_tm::init(), base_tm::mon(), base_tm::operator=(), and base_tm::strftime().

◆ m_sec

int base_tm::m_sec
protectedinherited

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

Referenced by base_tm::init(), base_tm::operator=(), base_tm::sec(), and base_tm::strftime().

◆ m_usec

int base_tm::m_usec
protectedinherited

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

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

◆ m_wday

int base_tm::m_wday
protectedinherited

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

Referenced by base_tm::init(), base_tm::operator=(), base_tm::strftime(), and base_tm::wday().

◆ m_yday

int base_tm::m_yday
protectedinherited

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

Referenced by base_tm::init(), base_tm::operator=(), base_tm::strftime(), and base_tm::yday().

◆ m_year

int base_tm::m_year
protectedinherited

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

Referenced by base_tm::init(), base_tm::operator=(), base_tm::strftime(), and base_tm::year().

◆ m_zone

std::string base_tm::m_zone
protectedinherited

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

Referenced by base_tm::init(), base_tm::operator=(), base_tm::strftime(), and base_tm::zone().


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