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

Get Seconds Method


The Get Seconds method returns the seconds portion of a date object as a number from 0 through 59. For more information, see Values for Dates and Times.

Format

dateVar.getSeconds()

Example

The following code returns the number 14, which is the seconds portion of the specified date:

var aDate = new Date("October 31, 1986 12:13:14");
TheApplication().RaiseErrorText(aDate.getSeconds());

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