Class MsDosDateTimeUtils


  • public class MsDosDateTimeUtils
    extends java.lang.Object
    Yes. This actually refers to MS-DOS in 2015. That's all I have to say about legacy stuff.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int packCurrentDate()
      Packs the current time value into an MS-DOS date value.
      static int packCurrentTime()
      Packs the current time value into an MS-DOS time value.
      static int packDate​(long time)
      Packs java time value into an MS-DOS date value.
      static int packTime​(long time)
      Packs java time value into an MS-DOS time value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • packTime

        public static int packTime​(long time)
        Packs java time value into an MS-DOS time value.
        Parameters:
        time - the time value
        Returns:
        the MS-DOS packed time
      • packCurrentTime

        public static int packCurrentTime()
        Packs the current time value into an MS-DOS time value.
        Returns:
        the MS-DOS packed time
      • packDate

        public static int packDate​(long time)
        Packs java time value into an MS-DOS date value.
        Parameters:
        time - the time value
        Returns:
        the MS-DOS packed date
      • packCurrentDate

        public static int packCurrentDate()
        Packs the current time value into an MS-DOS date value.
        Returns:
        the MS-DOS packed date