GNU Octave  8.1.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 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 sys::base_tm &t)
 
static std::string stringfield (const octave_scalar_map &m, const std::string &k, const char *who)
 

Function Documentation

◆ extract_tm()

static sys::base_tm extract_tm ( const octave_scalar_map m,
const char *  who 
)
static

Definition at line 91 of file time.cc.

References intfield(), m, and stringfield().

Referenced by Fmktime(), and Fstrftime().

◆ Fgmtime()

OCTAVE_EXPORT octave_value_list Fgmtime ( const octave_value_list args,
int   
)

Definition at line 164 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 220 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 265 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 452 of file time.cc.

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

◆ Fstrptime()

OCTAVE_EXPORT octave_value_list Fstrptime ( const octave_value_list args,
int   
)

Definition at line 490 of file time.cc.

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

◆ Ftime()

OCTAVE_EXPORT octave_value_list Ftime ( const octave_value_list args,
int   
)

Definition at line 121 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 65 of file time.cc.

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

Referenced by extract_tm().

◆ mk_tm_map()

static octave_scalar_map mk_tm_map ( const sys::base_tm &  t)
static

Definition at line 44 of file time.cc.

References m.

Referenced by Fgmtime(), Flocaltime(), and Fstrptime().

◆ stringfield()

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

Definition at line 78 of file time.cc.

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

Referenced by extract_tm().