public class FTPDate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.text.SimpleDateFormat |
_mlstFormat |
protected static java.text.SimpleDateFormat |
_mlstFormatLong |
protected static java.lang.String[] |
_months |
protected static long |
SIX_MONTHS |
Constructor and Description |
---|
FTPDate() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
packMlstDateTime(long dateTime)
Return a machine listing date/time, in the format 'YYYYMMDDHHSS'.
|
static java.lang.String |
packMlstDateTimeLong(long dateTime)
Return a machine listing date/time, in the format 'YYYYMMDDHHSS.sss'.
|
static void |
packUnixDate(java.lang.StringBuffer buf,
java.util.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 java.lang.String[] _months
protected static final java.text.SimpleDateFormat _mlstFormat
protected static final java.text.SimpleDateFormat _mlstFormatLong
public static final void packUnixDate(java.lang.StringBuffer buf, java.util.Date dt)
buf
- StringBufferdt
- Datepublic static final java.lang.String packMlstDateTime(long dateTime)
dateTime
- longpublic static final java.lang.String packMlstDateTimeLong(long dateTime)
dateTime
- longCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.