Calendar
Arguments
- object
A
character
string specifying the abbreviated label of the time scale (see details) or an object from which to extract the time scale.
Value
A TimeScale
object.
Details
The following time scales are available:
label | era | calendar |
BP | Before Present | Gregorian |
BC | Before Christ | Gregorian |
BCE | Before Common Era | Gregorian |
AD | Anno Domini | Gregorian |
CE | Common Era | Gregorian |
b2k | Years before 2000 | Gregorian |
julian | Julian |
See also
Other calendar tools:
calendar_get
,
convert()
,
gregorian
,
is()
,
julian()
Examples
## Define time scales
calendar("BP")
#> Before Present (BP): Gregorian years counted backwards from 1950
calendar("AD")
#> Anno Domini (AD): Gregorian years counted forwards from 0
calendar("julian")
#> Julian years counted forwards from 1
## Shortcuts
BP()
#> Before Present (BP): Gregorian years counted backwards from 1950
AD()
#> Anno Domini (AD): Gregorian years counted forwards from 0
J()
#> Julian years counted forwards from 1