format.mondate: Format a mondate

Description Usage Arguments Details Value See Also Examples

View source: R/mondate.r

Description

Function to format a mondate into its character representation according to the displayFormat property.

Usage

1
2
## S3 method for class 'mondate'
format(x, ...)

Arguments

x

a mondate.

...

further arguments passed to or from other methods.

Details

For more details see format and especially strptime.

Value

character representation of the mondate.

See Also

strptime.

Examples

1
2
3
(b<-mondate(1))   # end of first month of millennium
format(b)         # "01/31/2000" -- with quotes -- in the U.S. locale
format(b, format="%Y-%m-%d")  # "2000-12-31"

mondate documentation built on Jan. 29, 2021, 5:06 p.m.