Skip to content

Change date time to epoch time

3 messages · Vivek Singh, David Winsemius, Jeff Newmiller

#
On Nov 16, 2013, at 8:46 PM, vivek kumar singh wrote:

            
Should we assume this is "epoch time"?
If it is then this is close:

as.numeric(as.POSIXct("2013-11-17 10:39:46 MYT"))

(You may need to supply an appropriate TZ offset in seconds

?POSIXct


--  
David.
David Winsemius, MD
Alameda, CA, USA
#
There are many epochs. Which one are you interested in? If you are interested in the POSIX time_t epoch, then you could look at ?DateTimeClasses to find out about ?as.POSIXct. You might also find my email on inputting zones informative [1].

Also, per the Posting Guide, please don't post in html format... it messes up your R code.

[1] https://www.stat.math.ethz.ch/pipermail/r-help/2013-August/357939.html
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
vivek kumar singh <vksingh.iiitb at gmail.com> wrote: