% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{advanceDate}
\alias{advanceDate}
\title{Advance a date}
\usage{
advanceDate(rd, days = 0L, unit = "Days", bdc = "Following",
  eom = FALSE, xp = NULL)
}
\arguments{
\item{rd}{A Date object describing the date to be advanced to the
next business day.}

\item{days}{An optional integer offset applied to the date}

\item{unit}{An optional character value denoting a time unit, default value
is \dQuote{Day}, and supported values are \dQuote{Days}, \dQuote{Weeks},
\dQuote{Months}, \dQuote{Years}, \dQuote{Hours}, \dQuote{Seconds},
\dQuote{Minutes}, \dQuote{Milliseconds}, \dQuote{Microseconds}.}

\item{bdc}{An optional integer defining a business day convention, default
is \dQuote{Following}, and supported values are
\dQuote{Following}, \dQuote{ModifiedFollowing}, \dQuote{Preceding},
\dQuote{ModifiedPreceding}, \dQuote{Unadjusted},
\dQuote{HalfMonthModifiedFollowing} and \dQuote{Nearest}.}

\item{eom}{An optional boolean toggle whether end-of-month is to be respected}

\item{xp}{An optional calendar object, if missing the default instance is used}
}
\value{
The advanced date is returned
}
\description{
Advance a date to the next business day plus an optional shift
}
\details{
This function takes a given date and advances it to the next business day
under the current (global) calendar setting. If an optional offset value is
given it is applied as well.
}
\examples{
advanceDate(Sys.Date(), 2)  # today to the next biz day, plus 2 days
}
\seealso{
The \code{advanceUnits} functions offers the same functionality from R.
}
