dtt_seconds | R Documentation |
Gets and sets second values for date/time vectors.
dtt_seconds(x, ...)
dtt_seconds(x) <- value
dtt_second(x, ...)
dtt_second(x) <- value
## S3 method for class 'Date'
dtt_second(x, ...)
## S3 method for class 'POSIXct'
dtt_second(x, ...)
## S3 method for class 'hms'
dtt_second(x, ...)
## S3 replacement method for class 'POSIXct'
dtt_second(x) <- value
## S3 replacement method for class 'hms'
dtt_second(x) <- value
dtt_set_second(x, value)
x |
A date/time vector. |
... |
Unused. |
value |
A integer vector of the second value(s). |
An integer vector (or the modified date/time vector).
dtt_second(Date)
: Get integer vector of second values for a Date vector
dtt_second(POSIXct)
: Get integer vector of second values for a POSIXct
vector
dtt_second(hms)
: Get integer vector of second values for a time vector
dtt_second(POSIXct) <- value
: Set second values for a POSIXct vector
dtt_second(hms) <- value
: Set second values for a hms vector
Other set time:
dtt_hours()
,
dtt_minutes()
x <- as.POSIXct("1990-01-02 23:40:51")
dtt_second(x)
dtt_second(x) <- 27L
x
x <- hms::as_hms("23:40:51")
dtt_second(x)
dtt_second(x) <- 27L
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.