Re: [google-appengine] how to calculate GMT timestemp to apoch timestemp ?

2013-09-04 Thread Vinny P
On Fri, Aug 30, 2013 at 5:25 AM, Vijay Kumbhani vnkumbh...@gmail.com
 wrote:

 How to calculate GMT timestamp to epoch timestamp?




First of all, it's better to discuss UTC time rather than GMT time; see
here for an explanation of UTC vs. GMT:
http://en.wikipedia.org/wiki/Coordinated_Universal_Time

Secondly, the epoch timestamp is the starting point for UNIX time, so it is
always 0 (which can also be expressed as 1/1/1970 00:00). The current
timestamp can be retrieved by calling *Date.getTime()* (this timestamp is
timezone-independent - it holds time relative to the epoch, which will be
identical in all timezones). If you want to convert this timestamp into a
timezone, you must first convert it into a displayable date.

-
-Vinny P
Technology  Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] how to calculate GMT timestemp to apoch timestemp ?

2013-08-30 Thread Vijay Kumbhani
Give me algorithms 
how it calculate 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.