Date.UTC

Date.UTC

Class Overview | Class Members | This Package | All Packages

Syntax
public static long UTC( int year, int month, int date, int hrs, int min, int sec )
Parameters
year
the year minus 1900.
month
the month between 0-11.
date
the day of the month between 1-31.
hrs
the hours between 0-23.
min
the minutes between 0-59.
sec
the seconds between 0-59.
Returns
the number of seconds since January 1, 1970, 00:00:00 GMT for the date and time specified by the arguments.
Description
Note: UTC() is deprecated.

Determines the date and time based on the arguments. The arguments are interpreted in UTC, not in the local time zone

See Also
Calendar