convert2seconds: Convert time to seconds

View source: R/convertTime.R

convert2secondsR Documentation

Convert time to seconds

Description

Converts time measurements into seconds

Usage

convert2seconds(T, input = "minutes", origin = "day")

Arguments

T

The time value to convert

input

The unit of time to convert, allowed values are "minutes", "hours", "days", "years", "HHMM".

origin

For POSIX whether to return relative to start of day ("day") or Unix epoch ("unix")

Value

The numeric value in seconds


sonicscrewdriver documentation built on May 29, 2024, 3:39 a.m.