[R-SIG-Finance] millisec timestamps for rows of xts/zoo object

Brian G. Peterson brian at braverock.com
Sun Jun 5 19:23:53 CEST 2011


On Sun, 2011-06-05 at 18:41 +0200, Ulrich Staudinger wrote:
> I have an xts/zoo object called tempBs, which has nicely assigned the
> timestamps to each row (see below). How can I convert the row-label to
> seconds or milliseconds since the epoch beginning (or any other
> integer or double number)? 

How about just using the POSIXct mode?

options(digits.secs=6)

should do it.

see 

?POSIXct


-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-SIG-Finance mailing list