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

#include "oct-time.h"

Public Member Functions

 time ()
 
 time (const base_tm &tm)
 
 time (const time &ot)
 
 time (double d)
 
 time (OCTAVE_TIME_T t)
 
 time (OCTAVE_TIME_T t, long us)
 
 ~time ()=default
 
std::string ctime () const
 
double double_value () const
 
timeoperator= (const time &ot)
 
void stamp ()
 
OCTAVE_TIME_T unix_time () const
 
long usec () const
 

Friends

std::ostream & operator<< (std::ostream &os, const time &ot)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ time() [1/6]

time::time ( )
inline

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

◆ time() [2/6]

time::time ( OCTAVE_TIME_T  t)
inline

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

◆ time() [3/6]

time::time ( OCTAVE_TIME_T  t,
long  us 
)
inline

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

References rem().

◆ time() [4/6]

time::time ( double  d)

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

References d.

◆ time() [5/6]

◆ time() [6/6]

time::time ( const time ot)
inline

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

◆ ~time()

time::~time ( )
default

Member Function Documentation

◆ ctime()

std::string time::ctime ( ) const

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

References base_tm::asctime().

◆ double_value()

double time::double_value ( ) const
inline

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

◆ operator=()

time& time::operator= ( const time ot)
inline

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

◆ stamp()

void time::stamp ( )

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

References octave_gettimeofday_wrapper().

◆ unix_time()

OCTAVE_TIME_T time::unix_time ( ) const
inline

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

Referenced by operator+(), operator<(), operator==(), and operator>().

◆ usec()

long time::usec ( ) const
inline

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

Referenced by operator+(), operator<(), operator==(), and operator>().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const time ot 
)
friend

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


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