|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tridas.io.util.DateUtils
public class DateUtils
Constructor Summary | |
---|---|
DateUtils()
|
Method Summary | |
---|---|
static org.tridas.schema.Date |
dateTimeToDate(org.tridas.schema.DateTime dt)
Convert from org.tridas.schema.DateTime to org.tridas.schema.Date |
static org.tridas.schema.DateTime |
getDateTime(Integer day,
Integer month,
Integer year)
Create a DateTime from the constituent day, month, year |
static org.tridas.schema.DateTime |
getDateTime(Integer day,
Integer month,
Integer year,
Integer hours,
Integer minutes)
Create a DateTime from the constituent day, month, year, hours and minutes |
static org.tridas.schema.DateTime |
getDateTime(Integer day,
Integer month,
Integer year,
Integer hours,
Integer minutes,
Integer seconds)
Create a DateTime from the constituent day, month, year, hours, minutes and seconds |
static org.tridas.schema.DateTime |
getDateTimeFromWinDendroTimestamp(String timestamp)
Get a DateTime from a WinDendro style timestamp. |
static String |
getDateTimePast4Style(org.tridas.schema.DateTime date)
Converts a DateTime into a PAST4 style date string (dd/MM/yyyy h:mm:ss a). |
static String |
getDateTimeTRIMSStyle(Date date)
Converts a DateTime into a TRIMS style date string (dd/MM/yyyy). |
static String |
getDateTimeTucsonStyle(org.tridas.schema.DateTime date)
Converts a DateTime into a Tucson style date string (yyyyMMdd). |
static String |
getFormattedDateTime(org.tridas.schema.DateTime date,
SimpleDateFormat dateFormat)
Converts a DateTime into a string formatted using the provided SimpleDateFormat |
static org.tridas.schema.DateTime |
getTodaysDateTime()
Create a DateTime for right now |
static org.tridas.schema.DateTime |
parseDateFromDayMonthYearString(String date)
Try and parse a DateTime from a string. |
static org.tridas.schema.DateTime |
parseDateFromPast4String(String date)
Parse a DateTime from a PAST4 format string (dd/MM/yyyy hh:mm) |
static org.tridas.schema.DateTime |
parseDateTimeFromNaturalString(String str)
Attempt to parse a DateTime from a natural language string using the Natty library. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateUtils()
Method Detail |
---|
public static org.tridas.schema.DateTime getTodaysDateTime()
public static org.tridas.schema.DateTime getDateTime(Integer day, Integer month, Integer year)
day
- month
- year
- hours
- minutes
-
public static org.tridas.schema.DateTime getDateTime(Integer day, Integer month, Integer year, Integer hours, Integer minutes)
day
- month
- year
- hours
- minutes
-
public static org.tridas.schema.DateTime getDateTime(Integer day, Integer month, Integer year, Integer hours, Integer minutes, Integer seconds)
day
- month
- year
- hours
- minutes
- seconds
-
public static org.tridas.schema.DateTime getDateTimeFromWinDendroTimestamp(String timestamp)
timestamp
-
public static org.tridas.schema.DateTime parseDateFromDayMonthYearString(String date) throws Exception
date
-
Exception
public static String getDateTimeTucsonStyle(org.tridas.schema.DateTime date)
date
-
public static String getFormattedDateTime(org.tridas.schema.DateTime date, SimpleDateFormat dateFormat)
date
- format
- SimpleDateFormat
public static String getDateTimePast4Style(org.tridas.schema.DateTime date)
date
-
public static String getDateTimeTRIMSStyle(Date date)
date
-
public static org.tridas.schema.DateTime parseDateFromPast4String(String date) throws Exception
date
-
Exception
public static org.tridas.schema.DateTime parseDateTimeFromNaturalString(String str)
str
-
public static org.tridas.schema.Date dateTimeToDate(org.tridas.schema.DateTime dt)
dt
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |