Package jp.gr.java_conf.dangan.util
Class MsdosDate
java.lang.Object
java.util.Date
jp.gr.java_conf.dangan.util.MsdosDate
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Date>
MS-DOS?`??????????????????Date???h?�÷?N???X?B
?f?[?^?? 4byte?l???????AMS-DOS?? ????Intel ?? x86?nCPU???? ?????????�}?????? LittleEndian???i?[???????B
?t?H?[?}?b?g???????????�N???B
?E???? 1?`12?? ?? 1?`12???\???B0?`11?????�‘?�}?????????B
?E???? 1?`31?? ?? 1?`31???\???B0?`30?????�‘?�}?????????B
?E?????? 0?`23?? ?? 0?`23???\???B
?E???? 0?`59?? ?? 0?`59???\???B
?E?b?? 0?`58?b ?? 0?`29???\???B?b?????????r?b?g???????????�‘ ???? ???�Ê?P???? 1?b?????? 2?b???????B
?f?[?^?? 4byte?l???????AMS-DOS?? ????Intel ?? x86?nCPU???? ?????????�}?????? LittleEndian???i?[???????B
?t?H?[?}?b?g???????????�N???B
+---------------+---------------++---------------+---------------+ | ???t-????byte | ???t-????byte || ????-????byte | ????-????byte | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |7|6|5|4|3|2|1|0|7|6|5|4|3|2|1|0||7|6|5|4|3|2|1|0|7|6|5|4|3|2|1|0| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ?N-7bit |??-4bit| ??-5bit ||????-5bit| ??-6bit | ?b-5bit | +-------------+-------+---------++---------+-----------+---------+?E?N?? 1980?`2107?N ?? 0?`127 ???\???BWindows???V?X?e??API?? ?????? 2099?N?????????T?|?[?g?????�‘???�‘?????????????B
?E???? 1?`12?? ?? 1?`12???\???B0?`11?????�‘?�}?????????B
?E???? 1?`31?? ?? 1?`31???\???B0?`30?????�‘?�}?????????B
?E?????? 0?`23?? ?? 0?`23???\???B
?E???? 0?`59?? ?? 0?`59???\???B
?E?b?? 0?`58?b ?? 0?`29???\???B?b?????????r?b?g???????????�‘ ???? ???�Ê?P???? 1?b?????? 2?b???????B
-- revision history --
$Log: MsdosDate.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/07/24 00:00:00 dangan
add to version control
[bug fix]
setTime() ?? ftime?????E???x??????2?b?????????x???L?^?????�‘???B
[maintenance]
?^?u???p?~
???C?Z???X?�÷???C??
- Version:
- $Revision: 1.1 $
- Author:
- $Author: dangan $
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMsdosDate(int time) MS-DOS ?`???????????????? ?V???�‘ MsdosDate ???\?z ?????Bdate ?????????????????\?? MsdosDate ???\?z?????B
MS-DOS ?`???????????????\?????�‘?�~???�‘???x???????? ?????????A???�Ê?????P???? java.util.Date ?? 1?~???b?????? MS-DOS ?`???????????? ?????�Ê?P???????? 2?b???????B -
Method Summary
Modifier and TypeMethodDescriptionclone()?�}???I?u?W?F?N?g???R?s?[???????Bint?�}?? MsdosDate???????????????? MS-DOS ?????`?????????BvoidsetMsdosTime(int time) ?�}?? MsdosDate ?? MS-DOS ?????`???????????????????????BvoidsetTime(long time) ?�}?? MsdosDate ???????????? 1970?N1??1?? 00:00:00 GMT???? time ?~???b?o?????????????????????B
MS-DOS ?`???????????????\?????�‘?�~???�‘???x???????? ?????????A???�Ê?????P???? java.util.Date ?? 1?~???b?????? MS-DOS ?`???????????? ?????�Ê?P???????? 2?b???????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, setDate, setHours, setMinutes, setMonth, setSeconds, toGMTString, toInstant, toLocaleString, toString, UTC
-
Constructor Details
-
MsdosDate
date ?????????????????\?? MsdosDate ???\?z?????B
MS-DOS ?`???????????????\?????�‘?�~???�‘???x???????? ?????????A???�Ê?????P???? java.util.Date ?? 1?~???b?????? MS-DOS ?`???????????? ?????�Ê?P???????? 2?b???????B- Parameters:
date- ?V?????\?z?????? MsdosDate ?????????????????? ?????? Date?I?u?W?F?N?g- Throws:
IllegalArgumentException- date ?? MS-DOS?????`???????????�‘???????????? ???????�‘??????
-
MsdosDate
public MsdosDate(int time) MS-DOS ?`???????????????? ?V???�‘ MsdosDate ???\?z ?????B- Parameters:
time- MS-DOS ?`????????????
-
-
Method Details
-
clone
?�}???I?u?W?F?N?g???R?s?[???????B -
setYear
public void setYear(int year) Deprecated.?�}?? MsdosDate ???????N?? year ???w?????????l??1900?????? ?????????????????B
?�}?????\?b?h???????`?F?b?N???s???????????????�÷???????B- Overrides:
setYearin classDate- Parameters:
year- 1900???????�}???????????\???????? ?N???l- Throws:
IllegalArgumentException- year ?? MS-DOS?????`???????????�‘???????????? ???????�‘??????
-
setTime
public void setTime(long time) ?�}?? MsdosDate ???????????? 1970?N1??1?? 00:00:00 GMT???? time ?~???b?o?????????????????????B
MS-DOS ?`???????????????\?????�‘?�~???�‘???x???????? ?????????A???�Ê?????P???? java.util.Date ?? 1?~???b?????? MS-DOS ?`???????????? ?????�Ê?P???????? 2?b???????B- Overrides:
setTimein classDate- Parameters:
time- 1970?N1??1?? 00:00:00GMT ???????o???~???b- Throws:
IllegalArgumentException- time ?? MS-DOS?????`???????????�‘???????????? ???????�‘??????
-
setMsdosTime
public void setMsdosTime(int time) ?�}?? MsdosDate ?? MS-DOS ?????`???????????????????????B- Parameters:
time- MS-DOS ?????`????????????
-
getMsdosTime
public int getMsdosTime()?�}?? MsdosDate???????????????? MS-DOS ?????`?????????B- Returns:
- MS-DOS?????`?????l
-