I’m plotting and performing calculations on uniformly distributed time series. The timestamps are currently stored as integers representing the number of seconds since the UNIX epoch (e.g. 1352068320), but Date objects seem more appropriate for plotting. How can I do the conversion?
I’ve read ?Date, ?as.Date and ??epoch, but seem to have missed that information.
Go via
POSIXctand you want to set aTZthere — here you see my (Chicago) default:Edit: A few years later, we can now use the anytime package:
Note how all this works without any format or origin arguments.