SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2004
    Location
    united states
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how obtain the current time in millis?

    Hello

    Does anyone know if it is possible to obtain the current time in millis in javascript? and if so how to do it?

    thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    England
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try:

    Code:
    <script language="JavaScript">
    <!-- Begin
    adate = new Date();
    i = adate.getMilliseconds();
    document.writeln(i);
    //  End -->
    </script>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •