Package jp.gr.java_conf.dangan.util
Class WindowsDate
java.lang.Object
java.util.Date
jp.gr.java_conf.dangan.util.WindowsDate
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Date>
Windows??FILETIME?`??????????????Date???h?χ?N???X?B
FILETIME ?? 1601?N 1?? 1?? 0??0??0?b???????o???????? 100?i?m?b?P????????64?r?b?g?l?B
?}???N???X???? FILETIME ?? long(64?r?b?g?l)???????????????? ???{?I???????????????????B
1601?N 1?? 1?? 0??0??0?b???O???????????????????? WindowsDate( Date date ) ???AWindowsDate.setTime( long time )???g?p?????B
FILETIME ?? 1601?N 1?? 1?? 0??0??0?b???????o???????? 100?i?m?b?P????????64?r?b?g?l?B
?}???N???X???? FILETIME ?? long(64?r?b?g?l)???????????????? ???{?I???????????????????B
1601?N 1?? 1?? 0??0??0?b???O???????????????????? WindowsDate( Date date ) ???AWindowsDate.setTime( long time )???g?p?????B
-- revision history --
$Log: WindowsDate.java,v $
Revision 1.1 2002/12/05 00:00:00 dangan
[maintenance]
javadoc ?R?????g???X?y???~?X???C???B
?\?[?X????
Revision 1.0 2002/08/05 00:00:00 dangan
add to version control
[bug fix]
set?n???\?b?h?? ?????O?????????Z?b?g????????????
???O????????P?[?X?????????????????????????s????????????????B
checkRange ??????????????????????????B
[maintenance]
?^?u???p?~
???C?Z???X?χ???C??
- Version:
- $Revision: 1.1 $
- Author:
- $Author: dangan $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longFILETIME?`?????f?[?^???Ajava.util.Date.getTime() ?? ?????????????`?????????????? 100?i?m?Z?J???h?P?????????????l?B ???N?A?[?b?????l?χ?????????????B -
Constructor Summary
ConstructorsConstructorDescription?f?t?H???g?R???X?g???N?^?B ???????????????????? WindowsDate???\?z?????B ?i?m?b?P??????????????????????????A0?????????????BWindowsDate(long time) ????????64?r?b?g??FILETIME?`???????????????? ?V???WindowsDate???\?z?????BWindowsDate(Date date) date?????????????????\?? WindowsDate???\?z?????B
date?? WindowsDate ???C???X?^???X?????? ?i?m?b?P???????????R?s?[?????????A???????O???????? ?i?m?b?P???????????? 0 ?????????????B -
Method Summary
Modifier and TypeMethodDescriptionclone()?}???I?u?W?F?N?g???R?s?[???????Blong?}?? WindowsDate???????????????? FILETIME ?`?????????BvoidsetDate(int date) Deprecated.voidsetHours(int hours) Deprecated.voidsetMinutes(int minutes) Deprecated.voidsetMonth(int month) Deprecated.voidsetSeconds(int seconds) Deprecated.voidsetTime(long time) ?}?? WindowsDate ???????????? 1970?N1??1?? 00:00:00 GMT???? time ?~???b?o?????????????????????B
?}?????\?b?h???????`?F?b?N???s???????????????χ???????BvoidsetWindowsTime(long time) ?}?? WindowsDate ?? FILETIME?`???????????????????????BvoidsetYear(int year) Deprecated.Methods inherited from class java.util.Date
after, before, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, toGMTString, toInstant, toLocaleString, toString, UTC
-
Field Details
-
TIME_DIFFERENCE
public static final long TIME_DIFFERENCEFILETIME?`?????f?[?^???Ajava.util.Date.getTime() ?? ?????????????`?????????????? 100?i?m?Z?J???h?P?????????????l?B ???N?A?[?b?????l?χ?????????????B- See Also:
-
-
Constructor Details
-
WindowsDate
public WindowsDate()?f?t?H???g?R???X?g???N?^?B ???????????????????? WindowsDate???\?z?????B ?i?m?b?P??????????????????????????A0?????????????B- Throws:
IllegalArgumentException- ???????????? FILETIME ?`?????\???????? ?????O???????????B
-
WindowsDate
date?????????????????\?? WindowsDate???\?z?????B
date?? WindowsDate ???C???X?^???X?????? ?i?m?b?P???????????R?s?[?????????A???????O???????? ?i?m?b?P???????????? 0 ?????????????B- Parameters:
date- ?V?????\?z?????? WindowsDate ???????????????????????? Date ???I?u?W?F?N?g- Throws:
IllegalArgumentException- ???????????? FILETIME ?`?????\???????? ?????O???????????B
-
WindowsDate
public WindowsDate(long time) ????????64?r?b?g??FILETIME?`???????????????? ?V???WindowsDate???\?z?????B- Parameters:
time- FILETIME?`????????????
-
-
Method Details
-
clone
?}???I?u?W?F?N?g???R?s?[???????B -
setYear
public void setYear(int year) Deprecated.?}?? WindowsDate ???????N?? year ?? ?w?????????l??1900???????????????????????B
?}?????\?b?h???????`?F?b?N???s???????????????χ???????B- Overrides:
setYearin classDate- Parameters:
year- 1900???????}???????????\???????? ?N???l- Throws:
IllegalArgumentException- year ?????X???????}?? FILETIME?`??????????? ??????????????????????
-
setMonth
public void setMonth(int month) Deprecated.?}?? WindowsDate ?????????? month ???w?????????l???????????B
?}?????\?b?h???????`?F?b?N???s???????????????χ???????B- Overrides:
setMonthin classDate- Parameters:
month- 0??1???A1??2???????????????????l- Throws:
IllegalArgumentException- month ?????X???????}?? FILETIME?`??????????? ??????????????????????
-
setDate
public void setDate(int date) Deprecated.?}?? WindowsDate ?????? ???????? ???????????????? date ???w?????????l???????????B
?}?????\?b?h???????`?F?b?N???s???????????????χ???????B- Overrides:
setDatein classDate- Parameters:
date- 1??1???A2??2???????????????????l- Throws:
IllegalArgumentException- date ?????X???????}?? FILETIME?`??????????? ??????????????????????
-
setHours
public void setHours(int hours) Deprecated.?}?? WindowsDate ???????????????????????? hours ???w?????????l???????????B
?}?????\?b?h???????`?F?b?N???s???????????????χ???????B- Overrides:
setHoursin classDate- Parameters:
hours- ???????l- Throws:
IllegalArgumentException- hours ?????X???????}?? FILETIME?`??????????? ??????????????????????
-
setMinutes
public void setMinutes(int minutes) Deprecated.?}?? WindowsDate ???????????????????????? minutes ???w?????????l???????????B
?}?????\?b?h???????`?F?b?N???s???????????????χ???????B- Overrides:
setMinutesin classDate- Parameters:
minutes- ?????l- Throws:
IllegalArgumentException- minutes ?????X???????}?? FILETIME?`??????????? ??????????????????????
-
setSeconds
public void setSeconds(int seconds) Deprecated.?}?? WindowsDate ???????????????????b???? secounds ???w?????????l???????????B
?}?????\?b?h???????`?F?b?N???s???????????????χ???????B- Overrides:
setSecondsin classDate- Parameters:
secounds- ?b??- Throws:
IllegalArgumentException- secounds ?????X???????}?? FILETIME?`??????????? ??????????????????????
-
setTime
public void setTime(long time) ?}?? WindowsDate ???????????? 1970?N1??1?? 00:00:00 GMT???? time ?~???b?o?????????????????????B
?}?????\?b?h???????`?F?b?N???s???????????????χ???????B- Overrides:
setTimein classDate- Parameters:
time- 1970?N1??1?? 00:00:00GMT ???????o???~???b- Throws:
IllegalArgumentException- time ??FILETIME?`??????????? ?????????????????????????
-
setWindowsTime
public void setWindowsTime(long time) ?}?? WindowsDate ?? FILETIME?`???????????????????????B- Parameters:
time- FILETIME?`????????????
-
getWindowsTime
public long getWindowsTime()?}?? WindowsDate???????????????? FILETIME ?`?????????B- Returns:
- FILETIME?`?????l
-