displayFormat-methods {mondate}R 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
## S4 method for signature 'mondate'
mondateDisplayFormat(x)
## S4 method for signature 'ANY'
mondateDisplayFormat(x)
## S4 replacement method for signature 'mondate'
mondateDisplayFormat(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. "

  2. "

  3. "

  4. "

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

Note

The mondateDisplayFormat versions are being 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

[Package mondate version 0.9.9.01 Index]