Learn R Programming

sonicscrewdriver (version 0.0.7)

convert2seconds: Convert time to seconds

Description

Converts time measurements into seconds

Usage

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

Value

The numeric value in seconds

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")