Constructor Function For bdTimeSpan Class

DESCRIPTION:

Construct an object of class bdTimeSpan.

This function requires the bigdata library section to be loaded.

USAGE:

bdTimeSpan(charvec, julian, ms)
as.bdTimeSpan(x)
is.bdTimeSpan(x) 

REQUIRED ARGUMENTS:

The function can be called with no arguments; if any are supplied, at least one of charvec, julian, or ms must be present.
x
a timeDate vector, or another vector or a bdVector.

Any S-PLUS object for is.bdTimeSpan.

OPTIONAL ARGUMENTS:

charvec
character vector to parse.
julian
integer vector of days of the time span. May be non-integer if ms is missing, in which case the fractional part represents fractions of days.
ms
integer vector of milliseconds of the time span.

VALUE:

a bdTimeSpan object constructed from the input, or the default (empty) bdTimeSpan object if no arguments are given.

DETAILS:

If charvec is given, options("tspan.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 julian and/or ms are provided instead of charvec, these values are put into the bdTimeSpan as the number of days and milliseconds respectively of the time span.

EXAMPLES:

bdTimeSpan(c( "378d 21h 04min 36s 365MS", "378 d", "1y, 13d, 21h 4MS")) 
bdTimeSpan(julian=c(398, 399, 400), ms=c(298392, 3, 0))