[R] Extract time only from POSIXlt object

Simon Goodman s.j.goodman at leeds.ac.uk
Sun Jan 30 01:45:43 CET 2011

How can I extract only the time component from an POSIXlt object?

For example if I try the following it still returns both the date and

[1] "2010-10-18 21:46:53"
[1] "2010-10-18 21:46:53"

round and trunc don't help...  is there an "as.Time" equivalent to as.Date  

Thanks, Simon

View this message in context: http://r.789695.n4.nabble.com/Extract-time-only-from-POSIXlt-object-tp3246751p3246751.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list