hrs.mins.secs {ssBase}R Documentation

Calculates Hours, Minutes and Seconds

Description

Given a datetime object (vector), the time represented by each element on a 24 hour clock is returned.

Usage

hrs.mins.secs(x)

Arguments

x a datetime vector object.

Value

A list object with the following components:

hour a vector of the hours (0, ..., 23).
minute a vector of the minutes (0, ..., 59).
second a vector of the seconds (0, ..., 59.9).

See Also

datetimes, years1, months1, days1

Examples

x <- datetimes(year=1998, month=8, day=25, hour=20, minute=33,
               second=24.5, dp.second=1)
hrs.mins.secs(x)

[Package ssBase version 2.2-1 Index]