time_diff: Determines the difference between two time points generated...

Description Usage Arguments Value TODO Note Author(s)

Description

Determines the difference between two time points generated from calling date()

Usage

1
time_diff(t1, t2, units = "min")

Arguments

t1

a date string eg "Wed Oct 20 14 03:12 2004"

t2

as for t1

units

one of “sec”, “min” or “hr”

Value

amount oftime between t2 - t1.

TODO

Make the function work for when t2 and t1 are on different days.

Note

check out lubridate package.

Author(s)

Mark Cowley, 20 Oct 2004


drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.