R/class_timespan_compat_lubridate.R

#' Wrapper for lubridate as.interval
#'
#' @inheritParams lubridate::as.interval
#'
#' @return An unaffected `partial_timespan`
#'
#' @importFrom methods setMethod signature
#' @importFrom lubridate as.interval
#'
#' @export
methods::setMethod(
  "as.interval",
  methods::signature("timespan"),
  function(x, ...) {
    x
  }
)

Try the parttime package in your browser

Any scripts or data that you put into this service are public.

parttime documentation built on May 29, 2024, 6:25 a.m.