timeDate Options
timeDate objects and classes.
timeDateOptions(...)name=value
    form. Optionally, you can give no arguments.
    See the Value and Side Effects sections for explanation.
  timeDateOptions returns
a list of current values for all options.
timeDateOptions returns a list of current values for the options
named in the character vector.
"list" is given as the only argument,
its components become the values for options with the corresponding names.
timeDateOptions returns a list of the option values
before they were modified.
Usually, the list given as an argument is the return value
of a previous call to timeDateOptions.
name=value form,
the values of the specified options are changed and timeDateOptions
returns a list of the option values before they were modified.
timeDateOptions
    ts.eps.
sequence.tol, it can 
be converted to a sequence.
timeDate objects
from character strings using the as and timeDate functions.
The default value is
"%m[/][.]%d[/][,]%y [%H[:%M[:%S[.%N]]][%p][[(]%3Z[)]]]",
which reads a wide variety of date strings.
To use the European day/month/year format, set this to
"%d[/][.]%m[/][,]%y [%H[:%M[:%S[.%N]]][%p][[(]%3Z[)]]]".
The elements of this format string are described in the
documentation for the timeDate class
(class.timeDate).
timeDate objects
to character strings.
The default value is "%02m/%02d/%04Y %02H:%02M:%02S.%03N".
To use the European day/month/year format, set this to
"%02d/%02m/%04Y %02H:%02M:%02S.%03N".
The elements of this format string are described in the
documentation for the timeDate class
(class.timeDate).
timeDate objects when the
time.zone option is set to GMT
and the time of every element of the timeDate object is midnight.
See timeDate for more information.
time.century=1950, the year 50 is interpreted as 1950 and the year 49 is interpreted as 2049. 
If time.century=1900, the year 0 means 1900 and the year 99 means 1999.
timeSpan objects from character strings using the as and timeSpan functions.
timeSpan objects to character strings.
NULL
   sequence.tol=1e-6
   time.am.pm=c("AM", "PM")
   time.century=1930
   time.in.format="[%m[/][.]%d[/][,]%y] [%H[:%M[:%S[.%N]]][%p][[(]%3Z[)]]]"
   time.out.format="%02m/%02d/%Y %02H:%02M:%02S.%03N"
   time.day.abb=c("Sun", "Mon", ..., "Sat")
   time.day.name=c("Sunday", "Monday", ..., "Saturday")
   time.month.abb=c("Jan", "Feb", ..., "Dec")
   time.month.name=c("January", "February", ..., "December")
   time.zone="GMT"
   tspan.in.format=paste("[%yy[ear[s]][,]] [%dd[ay[s]][,]]",
     "[%Hh[our[s]][,]] [%Mm[in[ute][s]][,]] [%Ss[ec[ond][s]][,]]",
     "[%NM[s][S]]")
   tspan.out.format="%dd %Hh %Mm %Ss %NMS",
   ts.eps=1e-5
 timeDateOptions is called with either a list as the single argument
or with one or more arguments in name=value form,
the options specified are changed or created.
The options are stored in a list in a local environment
within the splusTimeDate package.
Any modifications to the options disappear when the current session ends.
The next session will start with the default value of the options.timeDate options and their current values,
call timeDateOptions with no arguments i.e. timeDateOptions()To set timeDateOptions temporarily in a function,
call timeDateOptions as you normally would from the command line.
To ensure that your function finishes cleanly
and does not produce any side effects,
use on.exit with the return value from
your call to timeDateOptions.)
timeDateOptions(time.zone="PST")
Run the code above in your browser using DataLab