Skip to content
Prev 343057 / 398513 Next

generating a sequence of seconds

Hello!

If I would like to generate a sequence of seconds for a date, I would do
the following:

x <- seq(from=as.POSIXct(2014-08-12 00:00:00),to=as.POSIXct(2014-08-12
23:59:59),by="secs")

What if I just want the seconds vector without the date, please?  Is there
a convenient way to create such a vector, please?

thanks,
Erin