add_period_to_date

0th

Percentile

Addition for the duration (i...

Addition for the duration (i.e, difftime), period, and interval classes.

Keywords
methods, arith, chron
Usage
add_period_to_date(date, period)
Arguments
date
a duration(i.e. difftime), period, interval, POSIXt, or Date object
period
a duration(i.e. difftime), period, interval, POSIXt, or Date object
Value

  • a new duration(i.e. difftime), period, interval, POSIXt, or Date object, depending on e1 and e2

Aliases
  • +.duration
  • +.interval
  • +.period
  • +.POSIXt
  • +.difftime
  • +.Date
  • add_dates
  • add_interval_to_date
  • add_interval_to_interval
  • add_number_to_date
  • add_number_to_posix
  • add_period_to_date
  • add_duration_to_date
  • add_number_to_duration
  • add_number_to_period
  • add_period_to_period
  • add_duration_to_period
  • add_duration_to_duration
  • add_duration_to_interval
  • add_period_to_interval
  • add_number_to_interval
Examples
x <- new_duration(day = 1)
x + now()
today() + x
x + difftime(now() + 3600, now())
x + x
Documentation reproduced from package lubridate, version 0.1, License: GPL

Community examples

Looks like there are no examples yet.