format.datetimes {ssBase}R Documentation

Format a DateTimes Object

Description

This function provides a method for the generic function format to be used on objects with class "datetimes".

Usage

## S3 method for class 'datetimes':
format(x, ...)

Arguments

x a datetimes object.
... other options for formatting "datetimes" objects.

Value

a character vector of the same length as the input vector, with the format “DDMMMYYYY hh:mm:ss.s” is output, where the number of decimal places for second is specified by the datetimes attribute "dp.second".

Examples

a <- datetimes(1998, 6, 2, 13, 34, 25.9, dp.second=1)
format(a)

[Package ssBase version 2.2-1 Index]