iphone - Getting current time via Javascript -


a two-part question:

  1. what best way current time javascript?

  2. what resolution can assume across major platforms (including browser-capable pdas, iphone, etc.) -- seconds, milliseconds, 1/10th of second?

thanks!

  1. var date = new date();. new date().gettime() return number of milliseconds since january 1 1970.
  2. milliseconds. it's specified such in ecmascript spec.

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -