periodize Round datetime

The periodize function is used in this link.
There is a separate package called "periods" or "Period" or something ??
In which package could I find the function?
my intention is to reproduce the example:

x<-"2012-05-30 20:41:21 UTC"
(idt <- IDateTime(x))
(idate <- idt$idate)
(itime <- idt$itime)

ip_posix = as.POSIXct(periodize(idate, itime, "mins", 15), tz="UTC")
ip = periodize(idate, itime, "mins", 15)

to be

"20:45"

Hi @Hermes,
Some documentation for that function is here:
https://jangorecki.github.io/drat/iperiod/
and it looks like it was to be part of data.table but its not included.
Maybe try contacting the author (or use lubridate).
HTH

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.