R/pillar.R

Defines functions pillar_shaft.datey_interval pillar_shaft.durationy pillar_shaft.datey

# Date and duration arithmetic on an annual grid for R
#
# This file is licensed to you under the MIT License.
#
# Copyright (c) Tim Gordon

#' @exportS3Method pillar::pillar_shaft
pillar_shaft.datey <- function(x, ...) {
  text <- as.character(x)
  pillar::new_pillar_shaft_simple(text, align = "right")
}
#' @exportS3Method pillar::pillar_shaft
pillar_shaft.durationy <- function(x, ...) {
  text <- as.character(x)
  pillar::new_pillar_shaft_simple(text, align = "right")
}
#' @exportS3Method pillar::pillar_shaft
pillar_shaft.datey_interval <- function(x, ...) {
  text <- as.character(x)
  pillar::new_pillar_shaft_simple(text, align = "right")
}

Try the datey package in your browser

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

datey documentation built on July 14, 2026, 5:06 p.m.