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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Calculation 1

Status
Not open for further replies.

gus121

Technical User
May 9, 2002
298
GB
Can Anyone help desparately need some code which can work out the date based on seconds from 1990. thanks
 
Hmmm

from the JavaDoc:

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.

long getTime()
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.


Seems to me if you play with those and 20-year-seconds, you should be able to work it out.

Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top