UTC Summary Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Signatures Click on a signature to select it and view its documentation. public static double UTC(int year, Month month) public static double UTC(int year, Month month, int dayOfMonth) public static double UTC(int year, Month month, int dayOfMonth, int hour) public static double UTC(int year, Month month, int dayOfMonth, int hour, int minute) public static double UTC(int year, Month month, int dayOfMonth, int hour, int minute, int second) public static double UTC(int year, Month month, int dayOfMonth, int hour, int minute, int second, int millisecond) public static double UTC(int year, int month) public static double UTC(int year, int month, int dayOfMonth) public static double UTC(int year, int month, int dayOfMonth, int hour) public static double UTC(int year, int month, int dayOfMonth, int hour, int minute) public static double UTC(int year, int month, int dayOfMonth, int hour, int minute, int second) public static double UTC(int year, int month, int dayOfMonth, int hour, int minute, int second, int millisecond) Usage public static double UTC(int year, Month month) public static double UTC(int year, Month month, int dayOfMonth) public static double UTC(int year, Month month, int dayOfMonth, int hour) public static double UTC(int year, Month month, int dayOfMonth, int hour, int minute) public static double UTC(int year, Month month, int dayOfMonth, int hour, int minute, int second) public static double UTC(int year, Month month, int dayOfMonth, int hour, int minute, int second, int millisecond) public static double UTC(int year, int month) public static double UTC(int year, int month, int dayOfMonth) public static double UTC(int year, int month, int dayOfMonth, int hour) public static double UTC(int year, int month, int dayOfMonth, int hour, int minute) public static double UTC(int year, int month, int dayOfMonth, int hour, int minute, int second) public static double UTC(int year, int month, int dayOfMonth, int hour, int minute, int second, int millisecond) Parameters year A year after 1900. month The month of the year. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. hour The hour of the day. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. hour The hour of the day. minute The minute of the next hour. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. hour The hour of the day. minute The minute of the next hour. second The second of the next minute. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. hour The hour of the day. minute The minute of the next hour. second The second of the next minute. millisecond The millisecond of the next second. Parameters year A year after 1900. month The month of the year. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. hour The hour of the day. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. hour The hour of the day. minute The minute of the next hour. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. hour The hour of the day. minute The minute of the next hour. second The second of the next minute. Parameters year A year after 1900. month The month of the year. dayOfMonth The day of the month. hour The hour of the day. minute The minute of the next hour. second The second of the next minute. millisecond The millisecond of the next second. Description Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Returns the number of milliseconds elapsed since 1 January, 1970 00:00:00:00 in Coordinated Universal Time (UTC). Examples Basic Usage 1234import System; Console.log(Date.UTC(1970, Date.Month.JAN));Console.log(Date.UTC(1970, Date.Month.FEB)); Basic Usage 1234import System; Console.log(Date.UTC(1970, Date.Month.JAN, 15));Console.log(Date.UTC(1970, Date.Month.FEB, 2)); Basic Usage 1234import System; Console.log(Date.UTC(1970, Date.Month.JAN, 15, 13));Console.log(Date.UTC(1970, Date.Month.FEB, 2, 13)); Basic Usage 1234import System; Console.log(Date.UTC(1970, Date.Month.JAN, 15, 13, 2));Console.log(Date.UTC(1970, Date.Month.FEB, 2, 13, 2)); Basic Usage 1234import System; Console.log(Date.UTC(1970, Date.Month.JAN, 15, 13, 2, 1));Console.log(Date.UTC(1970, Date.Month.FEB, 2, 13, 2, 1)); Basic Usage 1234import System; Console.log(Date.UTC(1970, Date.Month.JAN, 15, 13, 2, 1, 900));Console.log(Date.UTC(1970, Date.Month.FEB, 2, 13, 2, 1, 900)); Basic Usage 1234import System; Console.log(Date.UTC(1970, 0));Console.log(Date.UTC(1970, 1)); Basic Usage 1234import System; Console.log(Date.UTC(1970, 0, 15));Console.log(Date.UTC(1970, 1, 2)); Basic Usage 1234import System; Console.log(Date.UTC(1970, 0, 15, 13));Console.log(Date.UTC(1970, 1, 2, 13)); Basic Usage 1234import System; Console.log(Date.UTC(1970, 0, 15, 13, 2));Console.log(Date.UTC(1970, 1, 2, 13, 2)); Basic Usage 1234import System; Console.log(Date.UTC(1970, 0, 15, 13, 2, 1));Console.log(Date.UTC(1970, 1, 2, 13, 2, 1)); Basic Usage 1234import System; Console.log(Date.UTC(1970, 0, 15, 13, 2, 1, 900));Console.log(Date.UTC(1970, 1, 2, 13, 2, 1, 900)); Share HTML | BBCode | Direct Link