timeDate(charvec, in.format, format, zone, julian, ms, in.origin=c(month=1, day=1, year=1960))
One of charvec, julian, or ms must be supplied, unless the function is called with no arguments. | |
charvec | a character vector to read the times from. |
in.format | the input format string for charvec. The default value is timeDateOptions("time.in.format"). (Click class.timeDate in the SEE ALSO section for the list of allowable input format strings. |
format | the output format stored in the result. The default is timeDateOptions("time.out.format"). |
zone | the time zone stored in the result. The default value is timeDateOptions("time.zone"). |
julian | an integer vector of the number of days since in.origin. If ms is missing, this argument can also be a numeric whose fractional part gives the fraction of the day. |
ms | an integer vector of milliseconds since midnight. |
in.origin | the origin for the julian argument. This should be a vector with month, day, and year components. |
timeDate() timeDate(c("1/1/97", "2/1/97", "mar 1, 1997")) timeDate(c("1 PM", "2 PM", "3 AM"), in.format = "%H %p", format = "%I %p") timeDate(julian = 36, ms = 876393, in.origin = c(month=1,day=1,year=1998))## Get today's date in yyyymmdd format timeDate(date(), in.format="%w %m %d %H:%M:%S %Y", format="%Y%02m%02d")