Class UnixDateFormat

java.lang.Object
org.apache.sshd.sftp.server.UnixDateFormat

public final class UnixDateFormat extends Object
  • Field Details

    • MONTHS

      public static final List<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:
  • Constructor Details

    • UnixDateFormat

      private UnixDateFormat()
  • Method Details

    • getUnixDate

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

      public static String getUnixDate(long millis)