Learn R Programming

prophet (version 1.0)

time_diff: Time difference between datetimes

Description

Compute time difference of two POSIXct objects

Usage

time_diff(ds1, ds2, units = "days")

Arguments

ds1

POSIXct object

ds2

POSIXct object

units

string units of difference, e.g. 'days' or 'secs'.

Value

numeric time difference