Returns Julian day counts, date/time atoms from a 'timeDate' object, and extracts month atoms from a 'timeDate' object.
# S4 method for timeDate julian(x, origin = timeDate("1970-01-01"), units = c("auto", "secs", "mins", "hours", "days", "weeks"), zone = NULL, FinCenter = NULL, ...)# S4 method for timeDate atoms(x, ...)# S4 method for timeDate months(x, abbreviate = NULL)
# S4 method for timeDate atoms(x, ...)
# S4 method for timeDate months(x, abbreviate = NULL)
julian
returns a timeDate object as a Julian count.
timeDate
atoms and months
atoms
months
extrac from a timeDate object the calendar atoms, i.e. the year, month, day, and optionally hour, minute and second.
an object of class timeDate.
a length-one object inheriting from class "timeDate" setting the origin for the julian counter.
"timeDate"
a character string denoting the date/time units in which the results are desired.
the time zone or financial center where the data were recorded.
a character with the the location of the financial center named as "continent/city".
currently not used.
arguments passed to other methods.
## julian - tC = timeCalendar() julian(tC)[1:3] ## atoms - atoms(tC) ## months - months(tC)
Run the code above in your browser using DataCamp Workspace