On Fri, Aug 30, 2013 at 5:25 AM, Vijay Kumbhani <[email protected]>
 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to