Siebel eScript Language Reference > Methods Reference > UTC Methods >

Get UTC Hours Method


The Get UTC Hours Method returns the UTC hour of a date object as a number from 0 through 23. For more information, see Values for Dates and Times.

Format

dateVar.getUTCHours()

Example

The following example displays a value of 13, which is the hour portion of the date, followed by the GMT equivalent:

var aDate = new Date("May 1, 2005 13:24:35");
TheApplication().RaiseErrorText("Local hour is " + aDate.getHours() +
   "\nGMT hour is " + aDate.getUTCHours());

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