From lsjensen@micron.com  Wed May  1 17:35:04 2002
From: lsjensen@micron.com (lsjensen)
Date: Wed, 1 May 2002 10:35:04 -0600
Subject: [Rd] converting #sec to POSIX* format
Message-ID: <D7E178FC91F3D21186A90008C7B9A5B810080FD9@ntexchange09.micron.com>

Sure I'm missing something simple here, but I haven't been able to find a
easy way to convert a pure numeric (# of seconds since the beginning of
1970) back into a POSIX* object. 

ex.
> z<-as.POSIXct(Sys.time()) 
> z
[1] "2002-05-01 10:33:56 Mountain Daylight Time"
> x<-unclass(z)
> x
[1] 1020270836

Is there a simple way to transform x back into a POSIX* object similar to z?

Landon Jensen
Micron Technology, Inc.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] converting #sec to POSIX* format
lsjensen