sudokuAlt (version 0.2-0)

daysAgo: Format a Past Date

Description

Format a Date Relative to the Current Date

Usage

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

Value

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

Details

Internal function used by fetchUKGame().

Examples

Run this code
# NOT RUN {
daysAgo()  ## today
daysAgo(7) ## a week ago 
# }

Run the code above in your browser using DataLab