daysAgo {sudokuAlt}R Documentation

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

Details

Internal function used by fetchUKGame().

Value

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

Author(s)

Bill Venables

Examples

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

[Package sudokuAlt version 0.2-1 Index]