Get or Set the Default Calendar
Arguments
- which
A
characterstring specifying the calendar to be set. It must be one of "default" or "current". Note that "current" is automatically set byplot()orimage()and should not be changed manually.- x
A
characterstring specifying the abbreviated label of the time scale (seecalendar()) or an object from which to extract the time scale.
Value
A TimeScale object.
See also
Other calendar tools:
calendar(),
calendar_get,
convert(),
gregorian,
is_calendar(),
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
