Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

latexDate

Date Conversion to Character in LaTeX Format


Description

This is a simple convenience function that returns a date in the format used by \today in LaTeX. A possible use case is fixing the date shown in a vignette at weaving time.

Usage

latexDate(x = Sys.Date(), ...)

Arguments

x

any object for which an as.POSIXlt method exists. Defaults to the current date.

...

other arguments to as.POSIXlt

Value

A character vector

Author(s)

Mikko Korpela

Examples

latexDate()                              # today
latexDate(Sys.Date() + 5)                # today + 5 days
latexDate(c("2013-12-06", "2014-09-19")) # fixed dates
## [1] "December 6, 2013"   "September 19, 2014"
latexDate(5*60*60*24, origin=Sys.Date()) # today + 5 days

dplR

Dendrochronology Program Library in R

v1.7.2
GPL (>= 2)
Authors
Andy Bunn [aut, cph, cre, trl], Mikko Korpela [aut, cph, trl], Franco Biondi [aut, cph], Filipe Campelo [aut, cph], Pierre Mérian [aut, cph], Fares Qeadan [aut, cph], Christian Zang [aut, cph], Allan Buras [ctb], Jacob Cecile [ctb], Manfred Mudelsee [ctb], Michael Schulz [ctb], Klesse Stefan [ctb], Frank David [ctb], Visser Ronald [ctb]
Initial release
2021-01-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.