next up previous contents
Next: getTimezoneOffset Up: Methods Previous: getSeconds   Contents


getTime

Description

Gets the number of milliseconds since midnight January 1, 1970, universal time, for the specified Date object. You use this method to compare two or more Date objects.


Syntax

date1.getTime()


Parameters

None


Returns

An Integer value.


Example

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




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