displayFormat-methods: Methods to Access 'displayFormat' Property

displayFormat-methodsR Documentation

Methods to Access 'displayFormat' Property

Description

Methods to get and set the displayFormat value of a mondate.

Usage

## S4 method for signature 'mondate'
displayFormat(x)
## S4 method for signature 'ANY'
displayFormat(x)
## S4 replacement method for signature 'mondate'
displayFormat(x)<-value

Arguments

x

a mondate.

value

For the "get" method, a character string indicating the date format with which to display the mondate. Choices are currently

  1. "%m/%d/%Y"

  2. "%m-%d-%Y"

  3. "%Y-%m-%d"

  4. "%Y/%m/%d"

If x is not a mondate, the "get" value returned is NULL.

Note

The mondateDisplayFormat versions have been deprecated.

Examples

x<-mondate("2010-6-30")            # The middle of 2010
displayFormat(x)                   # "%Y-%m-%d"
displayFormat(x) <- "%m/%d/%Y"
x                                  # x now displays as 06/30/2010

mondate documentation built on May 29, 2024, 1:32 a.m.