next up previous contents
Next: getMilliseconds Up: Methods Previous: getFullYear   Contents


getHours

Description

Gets the hour (an integer from 0 to 23) of the specified Date object, according to local time. Local time is determined by the operating system on which the Ffish Script is running.


Syntax

date1.getHours()


Parameters

None


Returns

An integer.


Example

d = new Date(1997, 6, 15);
trace(d.getHours());
//output: 0




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.