Skip to content
Prev 248823 / 398503 Next

Extract time only from POSIXlt object

On Sat, Jan 29, 2011 at 7:45 PM, Simon Goodman <s.j.goodman at leeds.ac.uk> wrote:
If you are looking for a class that represents time of day, the
"times" class in the chron package can do that:
[1] 21:46:53

or
[1] 21:46:53


Now tt1 and tt2 are "times" objects and can be manipulated:
[1] 22:46:53


Although not specifically about times you might wish to read R News
4/1 which gives a bit of detail on chron and further references.