当前位置: 技术问答>java相关
Date类中 关于UTC() 的几个问题
来源: 互联网 发布时间:2015-08-21
本文导语: 请问一下:Date.UTC(int a,int b,int c,int d,int e,int f,int g) 中 a,b,c,d,e,f,g各是什么含义? UTC又是什么含义? | UTC public static long UTC(intyear, intmonth, ...
请问一下:Date.UTC(int a,int b,int c,int d,int e,int f,int g)
中 a,b,c,d,e,f,g各是什么含义?
UTC又是什么含义?
中 a,b,c,d,e,f,g各是什么含义?
UTC又是什么含义?
|
UTC
public static long UTC(int year,
int month,
int date,
int hrs,
int min,
int sec)
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 indecated is returned represented as the distance, measured in milliseconds, of that time from the epoch (00:00:00 GMT on January 1, 1970).
public static long UTC(int year,
int month,
int date,
int hrs,
int min,
int sec)
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 indecated is returned represented as the distance, measured in milliseconds, of that time from the epoch (00:00:00 GMT on January 1, 1970).