timeSpan
Class
timeSpan
.
timeSpan(charvec, in.format=<<see below>>, format=<<see below>>, julian, ms)
charvec
,
julian
, or
ms
must be present.
options("tspan.in.format")
.
options("tspan.out.format")
.
ms
is missing, in which case the fractional part represents
fractions of days.
timeSpan
object constructed from the input, or the
default (empty)
timeSpan
object if no arguments are given.
If
charvec
is given, the
in.format
is used
to parse
charvec
into time spans, and the
julian
and
ms
arguments are ignored (with a warning to the user if present).
If
format
is given, it is put into the
format
slot of the output.
If
julian
and/or
ms
are provided instead of
charvec
, these
values are put into the timeSpan as the number of days and milliseconds
respectively of the time span.
timeSpan() timeSpan(c( "378d 21h 04min 36s 365MS", "378 d", "1y, 13d, 21h 4MS")) timeSpan(julian=c(398, 399, 400), ms=c(298392, 3, 0))