public class FTPDate extends Object
Modifier and Type | Field and Description |
---|---|
protected static SimpleDateFormat |
_mlstFormat |
protected static SimpleDateFormat |
_mlstFormatLong |
protected static String[] |
_months |
protected static long |
SIX_MONTHS |
Constructor and Description |
---|
FTPDate() |
Modifier and Type | Method and Description |
---|---|
static String |
packMlstDateTime(long dateTime)
Return a machine listing date/time, in the format 'YYYYMMDDHHSS'.
|
static String |
packMlstDateTimeLong(long dateTime)
Return a machine listing date/time, in the format 'YYYYMMDDHHSS.sss'.
|
static void |
packUnixDate(StringBuffer buf,
Date dt)
Pack a date string in Unix format
The format is 'Mmm dd hh:mm' if the file is less than six months old, else the format is 'Mmm
dd yyyy'.
|
protected static final long SIX_MONTHS
protected static final String[] _months
protected static final SimpleDateFormat _mlstFormat
protected static final SimpleDateFormat _mlstFormatLong
public static final void packUnixDate(StringBuffer buf, Date dt)
buf
- StringBufferdt
- Datepublic static final String packMlstDateTime(long dateTime)
dateTime
- longpublic static final String packMlstDateTimeLong(long dateTime)
dateTime
- longCopyright © 2005–2018 Alfresco Software. All rights reserved.