You can call this function with no arguments. If you supply any arguments,
at least one of charvec, julian, or ms must be
present.
charvec
the character vector to parse.
in.format
the time span input format for parsing. Defaults to
timeDateOptions("tspan.in.format").
format
the output format to apply to the returned object. Defaults to
timeDateOptions("tspan.out.format").
julian
the integer vector of days of the time span. Can be a non-integer
if ms is missing, in which case the fractional part represents
fractions of days.
ms
an integer vector of milliseconds of the time span.
Value
returns a timeSpan object constructed from the input. If you provide
no arguments, returns the default (empty) timeSpan object.
Details
Ifcharvecis given, thein.formatis used
to parsecharvecinto time spans, and thejulianandmsarguments are ignored (with a warning to the user if they are present).
Ifformatis given, it is put into theformatslot of the output.
Ifjulianand/ormsare provided instead ofcharvec, these
values are put into thetimeSpanas the number of days and milliseconds,
respectively, of the time span.