Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help on java system call 1

Status
Not open for further replies.

antonioelderprado

IS-IT--Management
Joined
May 19, 2003
Messages
75
Hi,

can someone tell me from where java has this system call from:
system time new Date(system.currentTimeMillis.

the reason for this call is that java is returning some date that is different from what I have when I run # date on a shell.
my machine is ibm 7044 running aix 5.1L.

thank you

./antonio/.
 
Date
public Date(long date)
Allocates a Date object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.
Parameters:
date - the milliseconds since January 1, 1970, 00:00:00 GMT.
See Also:
System.currentTimeMillis()

currentTimeMillis
public static long currentTimeMillis()
Returns the current time in 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.
See Also:
Date
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top