23 #if defined (HAVE_CONFIG_H)
43 m.
assign (
"usec", static_cast<double> (t.
usec ()));
44 m.
assign (
"sec", static_cast<double> (t.
sec ()));
45 m.
assign (
"min", static_cast<double> (t.
min ()));
46 m.
assign (
"hour", static_cast<double> (t.
hour ()));
47 m.
assign (
"mday", static_cast<double> (t.
mday ()));
48 m.
assign (
"mon", static_cast<double> (t.
mon ()));
49 m.
assign (
"year", static_cast<double> (t.
year ()));
50 m.
assign (
"wday", static_cast<double> (t.
wday ()));
51 m.
assign (
"yday", static_cast<double> (t.
yday ()));
52 m.
assign (
"isdst", static_cast<double> (t.
isdst ()));
67 retval = v.
xint_value (
"%s: invalid TM_STRUCT argument", who);
80 retval = v.
xstring_value (
"%s: invalid TM_STRUCT argument", who);
117 if (
args.length () != 0)
159 if (
args.length () != 1)
162 double tmp =
args(0).double_value ();
214 if (
args.length () != 1)
217 double tmp =
args(0).double_value ();
258 if (
args.length () != 1)
443 if (
args.length () != 2)
446 std::string fmt =
args(0).xstring_value (
"strftime: FMT must be a string");
480 if (
args.length () != 2)
485 std::string fmt =
args(1).xstring_value (
"strptime: FMT must be a string");
OCTAVE_EXPORT octave_value_list isa nd deftypefn *return ovl(args(0).is_integer_type())
OCTINTERP_API void print_usage(void)
int xint_value(const char *fmt,...) const
#define DEFUN(name, args_name, nargout_name, doc)
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
std::string xstring_value(const char *fmt,...) const
int characters_converted(void) const
nd deftypefn *octave_map m
static octave::sys::base_tm extract_tm(const octave_scalar_map &m, const char *who)
std::string zone(void) const
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)
bool is_empty(void) const
void assign(const std::string &k, const octave_value &val)
octave_value getfield(const std::string &key) const
static std::string stringfield(const octave_scalar_map &m, const std::string &k, const char *who)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
std::string strftime(const std::string &fmt) const