Siebel eScript Language Reference > Methods Reference > Date and Time Methods >

Get Milliseconds Method


The Get Milliseconds method returns the milliseconds part of a date object as a number from 0 through 999. When given a date in milliseconds, it returns the last three digits of the millisecond date. If this value is negative, then it returns the result of the last three digits subtracted from 1000. For more information, see Values for Dates and Times.

Format

dateVar.getMilliseconds()

Example

The following example gets the time from the system clock. The number of milliseconds past the beginning of the second occurs at the end of the message:

var aDate = new Date;
   TheApplication().RaiseErrorText( aDate.toString() + " " +
      aDate.getMilliseconds() );

Siebel eScript Language Reference Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.