Wednesday, August 7, 2002 03:41 AM
I need to covert dates into the UTC equivalent (e.g. number of seconds elapsed since epoch).
However the JAVA1.3 API documentation says that the static long Date.UTC(int year, int month, int date, int hrs, int min, int sec) method is predicated :o(
They ask to use the Calendar class instead, but I cannot figure out how to get the same result (easy to implement) as Date.UTC()
Has anyone done it already? Do you have a piece of code to show me?