int_length

0th

Percentile

Get the length of an interval in seconds

Get the length of an interval in seconds

Usage
int_length(int)
Arguments
int
An interval object
Value

  • numeric The length of the interval in seconds. A negative number connotes a negative interval

See Also

int_start, int_shift, int_flip

Aliases
  • int_length
Examples
int <- new_interval(ymd("2001-01-01"), ymd("2002-01-01"))
# 2001-01-01 UTC--2002-01-01 UTC
int_length(int)
# 31536000
Documentation reproduced from package lubridate, version 1.2.0, License: GPL

Community examples

Looks like there are no examples yet.