Learn R Programming

splusTimeDate (version 1.5.0-72)

timeDefaults: Time Class Internal Functions

Description

Creates a list of defaults for reading/printing times and dates.

Usage

timeDefaults()

Arguments

Value

  • returns a list containing the following components:
  • month.namethe names of the calendar months.
  • month.abbthe abbreviations for the calendar months.
  • day.namethe names of the weekdays.
  • day.abbthe abbreviations for the weekdays.
  • am.pmstrings for printing/reading AM and PM.
  • centurythe first year of 100-year stretch to use for the current century in reading/printing dates, e.g. 1900.
  • zonethe time zone.

Details

The list components are read from their corresponding options, which are the component names with "time." prepended. For example, the weekday names come from timeDateOptions("time.day.name").

See Also

timeDateOptions, timeDate class.

Examples

Run this code
timeDefaults()

Run the code above in your browser using DataLab