Top Fields Constructors Methods
org.apache.sshd.sftp.server

public final Class UnixDateFormat

extends Object
Class Inheritance
Imports
java.nio.file.attribute.FileTime, java.util.Arrays, .Calendar, .Collections, .GregorianCalendar, .List

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final List<String>
MONTHS

A List of short months names where Jan=0, Feb=1, etc.

public static final long
SIX_MONTHS

Six months duration in msec.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

The formatted date string
getUnixDate
(FileTime
The FileTime to format - ignored if null
time
)

Get unix style date string.

public static String
getUnixDate(long millis)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MONTHSback to summary
public static final List<String> MONTHS

A List of short months names where Jan=0, Feb=1, etc.

SIX_MONTHSback to summary
public static final long SIX_MONTHS

Six months duration in msec.

Constructor Detail

UnixDateFormatback to summary
private UnixDateFormat()

Method Detail

getUnixDateback to summary
public static String getUnixDate(FileTime time)

Get unix style date string.

Parameters
time:FileTime

The FileTime to format - ignored if null

Returns:String

The formatted date string

See Also
getUnixDate(long)
getUnixDateback to summary
public static String getUnixDate(long millis)