JavaScript Dates and Times
Posted
by Alex Polo
on Stack Overflow
See other posts from Stack Overflow
or by Alex Polo
Published on 2010-06-18T06:18:43Z
Indexed on
2010/06/18
6:23 UTC
Read the original article
Hit count: 255
JavaScript
What is the JavaScript equivalent to the following PHP code:
$expTime = time() + (5 * 60 * 60); // now plus 5 hours (5 hour; 60 mins; 60 secs)
$expTimeStr = gmdate('Y-m-d\TH:i:s\Z', $expTime);
© Stack Overflow or respective owner