Class MsdosDate

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Date>

    public class MsdosDate
    extends java.util.Date
    implements java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MsdosDate​(int time)
      MS-DOS ?`???????????????? ?V??? MsdosDate ???\?z ?????B
      MsdosDate​(java.util.Date date)
      date ?????????????????\?? MsdosDate ???\?z?????B
      MS-DOS ?`???????????????\??????~??????x???????? ?????????A????????P???? java.util.Date ?? 1?~???b?????? MS-DOS ?`???????????? ??????P???????? 2?b???????B
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      ?}???I?u?W?F?N?g???R?s?[???????B
      int getMsdosTime()
      ?}?? MsdosDate???????????????? MS-DOS ?????`?????????B
      void setMsdosTime​(int time)
      ?}?? MsdosDate ?? MS-DOS ?????`???????????????????????B
      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
      void setYear​(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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MsdosDate

        public MsdosDate​(java.util.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:
        java.lang.IllegalArgumentException - date ?? MS-DOS?????`??????????????????????? ?????????????
      • MsdosDate

        public MsdosDate​(int time)
        MS-DOS ?`???????????????? ?V??? MsdosDate ???\?z ?????B
        Parameters:
        time - MS-DOS ?`????????????
    • Method Detail

      • clone

        public java.lang.Object clone()
        ?}???I?u?W?F?N?g???R?s?[???????B
        Overrides:
        clone in class java.util.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 java.util.Date
        Parameters:
        year - 1900???????}???????????\???????? ?N???l
        Throws:
        java.lang.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 java.util.Date
        Parameters:
        time - 1970?N1??1?? 00:00:00GMT ???????o???~???b
        Throws:
        java.lang.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