
These functions allow access to the components of a nanoperiod
# S4 method for nanoperiod
nanoperiod.month(x)# S4 method for nanoperiod
nanoperiod.day(x)
# S4 method for nanoperiod
nanoperiod.nanoduration(x)
nanoperiod.month
and nanoperiod.day
return
an integer64
whereas nanoperiod.nanoduration
returns a nanoduration
A nanoperiod
Dirk Eddelbuettel
Leonardo Silvestri
nanoduration
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