Learn R Programming

cleanTS (version 0.1.2)

find_dif: Helper function to find the time difference between two given timestamps.

Description

Helper function to find the time difference between two given timestamps.

Usage

find_dif(time1, time2)

Value

String, specifying the time interval between time1 and time2. It contains a integer and the unit, for e.g., 5 weeks, 6 months, 14 hours, etc.

Arguments

time1

POSIXt or Date object.

time2

POSIXt or Date object.