dtt_minute_decimal {dttr2}R Documentation

Get Decimal Minute Values

Description

Gets decimal minute values for date/time vectors.

Usage

dtt_minute_decimal(x, ...)

## S3 method for class 'Date'
dtt_minute_decimal(x, ...)

## S3 method for class 'POSIXct'
dtt_minute_decimal(x, ...)

## S3 method for class 'hms'
dtt_minute_decimal(x, ...)

Arguments

x

A date/time vector.

...

Unused.

Value

A numeric vector.

Methods (by class)

See Also

dtt_minute()

Other decimal: dtt_day_decimal(), dtt_doy_decimal(), dtt_hour_decimal(), dtt_month_decimal(), dtt_year_decimal()

Examples

x <- as.POSIXct("1990-01-02 23:40:51")
dtt_minute_decimal(x)
x <- hms::as_hms("23:40:51")
dtt_minute_decimal(x)

[Package dttr2 version 0.5.0 Index]