• About
  • Some works
  • Tools I use
web meditation
beautiful inside
Browse: Home / 2011 / December / How to get UNIX timestamp on Javascript

How to get UNIX timestamp on Javascript

By Oleg Soroka on 26 December 2011

var ts = Math.round((new Date()).getTime() / 1000);
console.log(ts);

You can check it through http://www.unixtimestamp.com/ service.

Posted in Hints | Tagged javascript | Leave a response

« Previous Next »

Categories

  • cms
  • css
  • Gatherings
  • Google
  • Hints
  • Wordpress
  • Браузеры
  • Инструменты
  • На манжетах
  • Новости
  • Серфим Internet

Twitter

  • @simalena и уровень любви к WFH +100 =) in reply to simalena 16 hrs ago
  • @SAKrisT выложи парочку фоток in reply to SAKrisT 1 day ago
  • не пропустите Велодень в Харькове! 26 мая!!! http://t.co/XcO6fnvK 1 day ago
  • http://t.co/rxYy3aEN QuickBlox: Авторизация и аутентификация #habr 2 days ago
  • Рассказ и слайд-шоу о буддийском паломничестве «Индия, Непал, Китай», 11 мая http://t.co/mp2HEu6j 1 week ago
  • More updates...

Powered by Twitter Tools

Copyright © 2012 web meditation.

Powered by WordPress. Code is Poetry.