apollo.util
Class DateUtil
java.lang.Object
apollo.util.DateUtil
public class DateUtil
- extends java.lang.Object
|
Field Summary |
protected static java.text.SimpleDateFormat[] |
date_formats
|
|
Method Summary |
static java.lang.String |
dateNoTime(java.util.Date date)
Return a date in the format 18-JAN-2004
(Used by GenbankReport) |
static java.lang.String |
formatDate(java.util.Date date)
The opposite of makeADate: converts a Date object to a String in
the current format. |
static java.util.Date |
makeADate(java.lang.String date_str)
|
static java.lang.String |
toGMT(java.util.Date date)
Convert a Date to GMT. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
date_formats
protected static java.text.SimpleDateFormat[] date_formats
DateUtil
public DateUtil()
makeADate
public static java.util.Date makeADate(java.lang.String date_str)
formatDate
public static java.lang.String formatDate(java.util.Date date)
- The opposite of makeADate: converts a Date object to a String in
the current format. (This is needed in case the user wants to change the
tiers and save as a tiers file.)
toGMT
public static java.lang.String toGMT(java.util.Date date)
- Convert a Date to GMT. This is useful because otherwise we get local timezones
that, in some cases, java.util.Date can write but can't parse (!).
dateNoTime
public static java.lang.String dateNoTime(java.util.Date date)
- Return a date in the format 18-JAN-2004
(Used by GenbankReport)