GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
time.cc File Reference
#include <string>
#include "defun.h"
#include "error.h"
#include "oct-map.h"
#include "oct-time.h"
#include "ov.h"
#include "ovl.h"
Include dependency graph for time.cc:

Go to the source code of this file.

Functions

static octave::sys::base_tm extract_tm (const octave_scalar_map &m, const char *who)
 
OCTAVE_EXPORT octave_value_list Fgmtime (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Flocaltime (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fmktime (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fstrftime (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fstrptime (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Ftime (const octave_value_list &args, int)
 
static int intfield (const octave_scalar_map &m, const std::string &k, const char *who)
 
static octave_scalar_map mk_tm_map (const octave::sys::base_tm &t)
 
static std::string stringfield (const octave_scalar_map &m, const std::string &k, const char *who)
 

Function Documentation

◆ extract_tm()

◆ Fgmtime()

OCTAVE_EXPORT octave_value_list Fgmtime ( const octave_value_list args,
int   
)

Definition at line 160 of file time.cc.

References mk_tm_map(), numel(), ovl(), and print_usage().

◆ Flocaltime()

OCTAVE_EXPORT octave_value_list Flocaltime ( const octave_value_list args,
int   
)

Definition at line 215 of file time.cc.

References mk_tm_map(), numel(), ovl(), and print_usage().

◆ Fmktime()

OCTAVE_EXPORT octave_value_list Fmktime ( const octave_value_list args,
int   
)

Definition at line 259 of file time.cc.

References extract_tm(), ovl(), and print_usage().

◆ Fstrftime()

OCTAVE_EXPORT octave_value_list Fstrftime ( const octave_value_list args,
int   
)

Definition at line 444 of file time.cc.

References extract_tm(), ovl(), print_usage(), and octave::sys::base_tm::strftime().

◆ Fstrptime()

OCTAVE_EXPORT octave_value_list Fstrptime ( const octave_value_list args,
int   
)

◆ Ftime()

OCTAVE_EXPORT octave_value_list Ftime ( const octave_value_list args,
int   
)

Definition at line 118 of file time.cc.

References ovl(), and print_usage().

◆ intfield()

static int intfield ( const octave_scalar_map m,
const std::string &  k,
const char *  who 
)
inlinestatic

Definition at line 63 of file time.cc.

References octave_value::isempty(), m, retval, and octave_value::xint_value().

Referenced by extract_tm().

◆ mk_tm_map()

◆ stringfield()

static std::string stringfield ( const octave_scalar_map m,
const std::string &  k,
const char *  who 
)
inlinestatic

Definition at line 76 of file time.cc.

References octave_value::isempty(), m, retval, and octave_value::xstring_value().

Referenced by extract_tm().