Class MsdosDate

java.lang.Object
java.util.Date
jp.gr.java_conf.dangan.util.MsdosDate
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Date>

public class MsdosDate extends Date implements Cloneable
MS-DOS?`??????????????????Date???h??N???X?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 Details

    • MsdosDate

      public MsdosDate(Date date)
      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

      public Object clone()
      ?}???I?u?W?F?N?g???R?s?[???????B
      Overrides:
      clone in class Date
      Returns:
      ?}??MsdosDate?I?u?W?F?N?g??????
    • setYear

      public void setYear(int year)
      Deprecated.
      ?}?? MsdosDate ???????N?? year ???w?????????l??1900?????? ?????????????????B
      ?}?????\?b?h???????`?F?b?N???s??????????????????????B
      Overrides:
      setYear in class Date
      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:
      setTime in class Date
      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