Skip to content

Instantly share code, notes, and snippets.

@grayghostvisuals
Created April 29, 2013 03:53
Show Gist options
  • Select an option

  • Save grayghostvisuals/5479618 to your computer and use it in GitHub Desktop.

Select an option

Save grayghostvisuals/5479618 to your computer and use it in GitHub Desktop.
What Time Is It
// http://css-tricks.com/make-client-side-data-available-server-side
var now = new Date();
var time = now.getTime();
time += 3600 * 1000; // one hour
now.setTime(time);
console.log(now.toGMTString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment