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