second

0th

Percentile

Get/set seconds component of a date-time.

Get/set seconds component of a date-time.

Keywords
manip, methods, utilities, chron
Usage
second(x)
Arguments
x
a date-time object
Details

Date-time must be a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, and fts objects.

Value

  • the seconds element of x as a decimal number

Aliases
  • second.default
  • second.zoo
  • second.its
  • second.ti
  • second.timeseries
  • second.fts
  • second.irts
  • second
  • second<-
  • second<-.default
  • second<-.chron
  • second<-.zoo
  • second<-.its
  • second<-.ti
  • second<-.timeDate
  • second<-.jul
  • second<-.timeSeries
  • second<-.fts
  • second<-.irts
Examples
x <- now()
second(x)
second(x) <- 1
second(x) <- 61 
second(x) > 2
Documentation reproduced from package lubridate, version 0.1, License: GPL

Community examples

Looks like there are no examples yet.