Learn R Programming

nanotime (version 0.3.10)

nanoperiod.month,nanoperiod-method: Nanoperiod accessors

Description

These functions allow access to the components of a nanoperiod

Usage

# S4 method for nanoperiod
nanoperiod.month(x)

# S4 method for nanoperiod nanoperiod.day(x)

# S4 method for nanoperiod nanoperiod.nanoduration(x)

Value

nanoperiod.month and nanoperiod.day return an integer64 whereas nanoperiod.nanoduration

returns a nanoduration

Arguments

x

A nanoperiod

Author

Dirk Eddelbuettel

Leonardo Silvestri

See Also

nanoduration

Examples

Run this code
p <- as.nanoperiod("2y1m1d/12:00:00")
nanoperiod.month(p)
nanoperiod.day(p)
nanoperiod.nanoduration(p)

Run the code above in your browser using DataLab