powered by
Gets and sets second values for date/time vectors.
dtt_seconds(x, ...)dtt_seconds(x) <- valuedtt_second(x, ...)dtt_second(x) <- value# S3 method for Date dtt_second(x, ...)# S3 method for POSIXct dtt_second(x, ...)# S3 method for hms dtt_second(x, ...)# S3 method for POSIXct dtt_second(x) <- value# S3 method for hms dtt_second(x) <- valuedtt_set_second(x, value)
dtt_seconds(x) <- value
dtt_second(x, ...)
dtt_second(x) <- value
# S3 method for Date dtt_second(x, ...)
# S3 method for POSIXct dtt_second(x, ...)
# S3 method for hms dtt_second(x, ...)
# S3 method for POSIXct dtt_second(x) <- value
# S3 method for hms dtt_second(x) <- value
dtt_set_second(x, value)
An integer vector (or the modified date/time vector).
A date/time vector.
Unused.
A integer vector of the second value(s).
dtt_second(Date): Get integer vector of second values for a Date vector
dtt_second(Date)
dtt_second(POSIXct): Get integer vector of second values for a POSIXct vector
dtt_second(POSIXct)
dtt_second(hms): Get integer vector of second values for a time vector
dtt_second(hms)
dtt_second(POSIXct) <- value: Set second values for a POSIXct vector
dtt_second(POSIXct) <- value
dtt_second(hms) <- value: Set second values for a hms vector
dtt_second(hms) <- value
Other set time: dtt_hours(), dtt_minutes()
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
Run the code above in your browser using DataLab