## S3 method for class 'default':
julian(x, d, y, origin. = c(month = 1, day = 1, year = 1970), ...)
month.day.year(jul, origin. = c(month = 1, day = 1, year = 1970))
leap.year(y)
day.of.week(month, day, year)
origin.
.getOption("chron.origin")
if this
is non-null, otherwise
c(month = 1, day = 1, year = 1970)
.origin.
) when
julian()
is called, or a list with members month
,
day
, year
corresponding to the input Julian dates if
month.day.year()
is called. leap.year()
returns a
logical vector indicating whether the corresponding year is a leap
year.
day.of.week()
returns a number between 0 and 6 to specify day
of the week--0 refers to Sunday. These functions were taken from Becker, Chambers, and Wilks (1988),
and were slightly modified to take chron
and dates
objects; some also take the extra argument origin.
.
chron
,
dates
,
times
julian(1, 1, 1970)
# [1] 0
unlist(month.day.year(0))
# month day year
# 1 1 1970
Run the code above in your browser using DataLab