I did this to make some operations with the seconds:
x <- as.numeric(unclass(ISOdatetime(year=2017,
month=2,
day=9,
hour=8,
min=38,
sec=39,
tz="Greenwich")))
x
[1] 1486629519
Now, I want to reverse it. That is, obtain from the 1486629519
the year, month, day, hour, minutes, and seconds as separate objects.
Of course I'm not dealing with just one quantity but with a large vector of seconds.