dtt_minutes {dttr2}R Documentation

Get and Set Minute Values

Description

Gets and sets minute values for date/time vectors.

Usage

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)

Arguments

x

A date/time vector.

...

Unused.

value

A integer vector of the minute value(s).

Value

An integer vector (or the modified date/time vector).

Methods (by class)

Functions

See Also

dtt_minute_decimal()

Other set time: dtt_hours(), dtt_seconds()

Examples

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

[Package dttr2 version 0.5.0 Index]