daysAgo: Format a Past Date

Description Usage Arguments Details Value Author(s) Examples

View source: R/sudokuAlt.R

Description

Format a Date Relative to the Current Date

Usage

1
daysAgo(n = 0, warn = TRUE)

Arguments

n

A positive integer for how many days ago

warn

Issue a warning if n <= 0 or n > 30

Details

Internal function used by fetchUKGame().

Value

A character string of the form "dd/mm/yy"

Author(s)

Bill Venables

Examples

1
2
daysAgo()  ## today
daysAgo(7) ## a week ago 

sudokuAlt documentation built on Dec. 16, 2019, 1:23 a.m.