aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes getWhen() of ActionEvent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "getWhen() of ActionEvent" Watch "getWhen() of ActionEvent" New topic
Author

getWhen() of ActionEvent

P Jain
Ranch Hand

Joined: Jul 31, 2004
Posts: 52
What is the unit of time which we get by getWhen() method of ActionEvent.


Regards<br />P Jain
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8707
    
    6

Since it's a long it is probably the system time in milliseconds:

public static long currentTimeMillis()

Returns the current time in milliseconds. Note that while the unit of time of the return value is a millisecond, the granularity of the value depends on the underlying operating system and may be larger. For example, many operating systems measure time in units of tens of milliseconds.

See the description of the class Date for a discussion of slight discrepancies that may arise between "computer time" and coordinated universal time (UTC).

Returns:
the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.

java.lang.System


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getWhen() of ActionEvent
 
Similar Threads
Events
"real" keyreleased events?
awt events
Marcus green exam 3
Button Click Event