get_minute: Numerical Minute of the Day.

Description Usage Arguments Examples

View source: R/AGread_Dates&Times.R

Description

Converts a timestamp to a numerical value between 0 (midnight) and 1439 (23:59). Seconds can be represented using a rational decimal.

Usage

1
get_minute(timestamp, format = "%Y-%m-%d %H:%M:%S", rational = FALSE)

Arguments

timestamp

A character vector containing timestamp information

format

The date-time format of the timestamp vector

rational

A logical scalar. Use rational number to represent seconds?

Examples

1
2
3
4
5
6
7
8
9
key_times <-
    paste("2018-03-15",
          c("00:00:00",
            "01:00:00",
            "12:00:00",
            "23:59:59"))

get_minute(key_times)
get_minute(key_times, rational = TRUE)

AGread documentation built on Feb. 26, 2020, 5:12 p.m.