GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
time.cc File Reference
#include <string>
#include "defun.h"
#include "error.h"
#include "oct-map.h"
#include "oct-time.h"
#include "ov.h"
#include "oct-obj.h"
Include dependency graph for time.cc:

Go to the source code of this file.

Functions

static octave_base_tm extract_tm (const octave_scalar_map &m)
 
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)
 
static octave_scalar_map mk_tm_map (const octave_base_tm &t)
 
static std::string stringfield (const octave_scalar_map &m, const std::string &k)
 

Function Documentation

static octave_base_tm extract_tm ( const octave_scalar_map m)
static
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   
)

Definition at line 270 of file time.cc.

References error(), error_state, extract_tm(), and print_usage().

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   
)

Definition at line 113 of file time.cc.

References print_usage().

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

Definition at line 59 of file time.cc.

References octave_scalar_map::getfield(), octave_value::int_value(), and octave_value::is_empty().

Referenced by extract_tm().

static octave_scalar_map mk_tm_map ( const octave_base_tm t)
static
static std::string stringfield ( const octave_scalar_map m,
const std::string &  k 
)
inlinestatic

Definition at line 72 of file time.cc.

References octave_scalar_map::getfield(), octave_value::is_empty(), and octave_value::string_value().

Referenced by extract_tm().