Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 91bd4ee969
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (29 sloc) 0.524 kb
\name{hour}
\alias{hour}
\alias{hour<-}
\title{Get/set hours component of a date-time.}
\usage{
hour(x)
}
\arguments{
\item{x}{a date-time object}
}
\value{
the hours element of x as a decimal number
}
\description{
Date-time must be a POSIXct, POSIXlt, Date, chron,
yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti,
jul, timeSeries, and fts objects.
}
\examples{
x <- ymd("2012-03-26")
hour(x)
hour(x) <- 1
hour(x) <- 25
hour(x) > 2
}
\keyword{chron}
\keyword{manip}
\keyword{methods}
\keyword{utilities}
Jump to Line
Something went wrong with that request. Please try again.