Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

base-format

Format Methods


Description

Formats 'timeDate' objects as ISO conform character strings.

Usage

## S3 method for class 'timeDate'
format(x, format = "", tz = "", usetz = FALSE, ...)

Arguments

format

a character string describing the format.

tz

a timezone specification to be used for the conversion.

usetz

a logical.

x

an object of class timeDate.

...

arguments passed to other methods.

Value

returns an ISO conform formatted character string.

Note

This S3 method will become in the future a S4 method

See Also

as.character.

Examples

## timeCalendar -
   # Time Calebdar 16:00
   tC = timeCalendar() + 16*3600
   tC
   
## Format as ISO Character String: 
   format(tC)

timeDate

Rmetrics - Chronological and Calendar Objects

v3043.102
GPL (>= 2)
Authors
Diethelm Wuertz [aut], Tobias Setz [cre], Yohan Chalabi [ctb], Martin Maechler [ctb], Joe W. Byers [ctb]
Initial release
2018-02-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.