Learn R Programming

splusTimeDate (version 2.5.8)

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.name

the names of the calendar months.

month.abb

the abbreviations for the calendar months.

day.name

the names of the weekdays.

day.abb

the abbreviations for the weekdays.

am.pm

strings for printing/reading AM and PM.

century

the first year of 100-year stretch to use for the current century in reading/printing dates, e.g. 1900.

zone

the 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