Learn R Programming

timetools (version 1.5.2)

when: Retrieve the 'timestamp' of a Time*DataFrame

Description

For Time objects.

Usage

when(x, ...)

## S3 method for class 'TimeInstantDataFrame': when(x, ...)

## S3 method for class 'TimeIntervalDataFrame': when(x, ...)

## S3 method for class 'SubtimeDataFrame': when(x, ...)

Arguments

x
object from which get the timestamp
...
arguments to or from other methods

Value

  • If TimeInstantDataFrame, return the instants of the object ; if TimeIntervalDataFrame, return the intervals of the object.

    if SubtimeDataFrame, return the POSIXst of the object.

See Also

TimeIntervalDataFrame, POSIXcti, TimeInstantDataFrame, POSIXct, SubtimeDataFrame, POSIXst