citHeader("To cite in publications use:")

## R >= 2.8.0 passes package metadata to citation().
if(!exists("meta") || is.null(meta)) meta <- packageDescription("date")
year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s.", meta$Version)

citEntry(entry = "Manual",
	 title = "date: Functions for handling dates",
	 author = personList(
           person("Terry", "Therneau",
                  email = "therneau@mayo.edu"),
           person("Thomas", "Lumley",
                  email = "thomas@biostat.washington.edu"),
           person("Kjetil", "Halvorsen",
                  email = "khal@alumni.uv.es"),
           person("Kurt", "Hornik",
                  email = "Kurt.Hornik@R-project.org")),
         year = year,
	 note = {
             paste(note,
                   "S original by Terry Therneau,",
		   "R port by Thomas Lumley, Kjetil Halvorsen,",
		   "and Kurt Hornik.")
         },
	 url = "http://CRAN.R-project.org/package=date",
	 textVersion = {
             paste("Terry Therneau and Thomas Lumley",
	           "and Kjetil Halvorsen and Kurt Hornik",
	           sprintf("(%s).", year),
		   "date: Functions for handling dates.",
                   note)
         })
