Class UnixDateFormat


  • public final class UnixDateFormat
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.List<java.lang.String> MONTHS
      A List of short months names where Jan=0, Feb=1, etc.
      static long SIX_MONTHS
      Six months duration in msec.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private UnixDateFormat()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getUnixDate​(long millis)  
      static java.lang.String getUnixDate​(java.nio.file.attribute.FileTime time)
      Get unix style date string.
      • Methods inherited from class java.lang.Object

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

      • MONTHS

        public static final java.util.List<java.lang.String> MONTHS
        A List of short months names where Jan=0, Feb=1, etc.
      • SIX_MONTHS

        public static final long SIX_MONTHS
        Six months duration in msec.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UnixDateFormat

        private UnixDateFormat()
    • Method Detail

      • getUnixDate

        public static java.lang.String getUnixDate​(java.nio.file.attribute.FileTime time)
        Get unix style date string.
        Parameters:
        time - The FileTime to format - ignored if null
        Returns:
        The formatted date string
        See Also:
        getUnixDate(long)
      • getUnixDate

        public static java.lang.String getUnixDate​(long millis)