Internet °ü·Ã ÀÚ·á

HomePage Backward Forward Post Reply List
Delete Modify
  Á¦¸ñ   [Java] Date Class 1998/10/08 (21:38)
À̸§ ±èÈ¿¿ø
¹øÈ£ 47
Á¶È¸ 420
º»¹® Date Class

1. Date component ranges
Year : Year minus 1900
Month : 0-11 (1¿ù=0)
Date : 1-31
Day 0-6 (ÀÏ¿äÀÏ=6)
Hour : 0-23
Minute : 0-59
Second : 0-59

2. The Date interface
2.1. Contsructors

Date() : ÇöÀçÀÇ ½Ã°£°ú ³¯Â¥·Î date¸¦ ¸¸µç´Ù.
Date(long) : single UTC value·Î date¸¦ ¸¸µç´Ù.
Date(int,int,int) : YMD (Year, Month, Day)
Date(int,int,int,int,int) : YMDHM (Hour, Minute)
Date(int,int,int,int,int,int) : YMDHMS (Second)
Date(string) : stringÀ¸·ÎºÎÅÍ date¸¦ ¸¸µç´Ù.

2.2 Static Methods

UTC(int,int,int,int,int,int) YMDHMS·Î UTC°ªÀ» °è»êÇÑ´Ù.
parse(string) : text formatÀ¸·ÎºÎÅÍ single UTC°ªÀ» ¹ÝȯÇÑ´Ù.
after(Date) : True if the date is later than the specified  date.
before(Date) : True if the date is earlier than "
equals(Object) : True if the date and specified date are  equal.

getDate() : day of the month¸¦ ¹Ýȯ
getDay() : day of week
getHours() : return the hour
getMinutes()
getMontj()
getSeconds()
getTime() : single UTC °ªÀ» ¹Ýȯ
getTimezoneOffset() : time zone offsetÀ» ºÐ´ÜÀ§·Î ¹Ýȯ
getYear() : returns the year after 1900
hashCode() : Computes the hash code for the date.
setDate(int) : Sets the date.
setHours(int)
setMinutes(int)
setMonth(int)
setSeconds(int)
setTime(long) : single UTC°ªÀ¸·Î time¼³Á¤
setYear(int)
toGMTString() : Converts a date to text using Internet GMT  conventions.
toLocaleString() : Converts a date to text using local  conventions.
toString() : Converts a date to text using UNIX ctime()  conventions.

HomePage Backward Forward Post Reply List
1998 by swindler