Date.UTC(Int32, Int32, Int32, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Determines the date and time based on the arguments.
[Android.Runtime.Register("UTC", "(IIIIII)J", "")]
[System.Obsolete("deprecated")]
public static long UTC (int year, int month, int date, int hrs, int min, int sec);
[<Android.Runtime.Register("UTC", "(IIIIII)J", "")>]
[<System.Obsolete("deprecated")>]
static member UTC : int * int * int * int * int * int -> int64
Parameters
- year
- Int32
the year minus 1900.
- month
- Int32
the month between 0-11.
- date
- Int32
the day of the month between 1-31.
- hrs
- Int32
the hours between 0-23.
- min
- Int32
the minutes between 0-59.
- sec
- Int32
the seconds between 0-59.
Returns
the number of milliseconds since January 1, 1970, 00:00:00 GMT for the date and time specified by the arguments.
- Attributes
Remarks
Determines the date and time based on the arguments. The arguments are interpreted as a year, month, day of the month, hour of the day, minute within the hour, and second within the minute, exactly as for the Date
constructor with six arguments, except that the arguments are interpreted relative to UTC rather than to the local time zone. The time indicated is returned represented as the distance, measured in milliseconds, of that time from the epoch (00:00:00 GMT on January 1, 1970).
This member is deprecated. As of JDK version 1.1, replaced by Calendar.set(year + 1900, month, date, hrs, min, sec)
or GregorianCalendar(year + 1900, month, date, hrs, min, sec)
, using a UTC TimeZone
, followed by Calendar.getTime().getTime()
.
Java documentation for java.util.Date.UTC(int, int, int, int, int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.