|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.fingo.util.DateTime
public final class DateTime
Date and time related helper functions.
| Constructor Summary | |
|---|---|
DateTime()
|
|
| Method Summary | |
|---|---|
static java.util.Vector<Pair> |
getDays(java.sql.Timestamp start,
java.sql.Timestamp end,
java.lang.String locale)
Returns vector of dates between given start and end timestamps. |
static java.util.Vector<Pair> |
getDays(java.sql.Timestamp start,
java.sql.Timestamp end,
java.lang.String locale,
java.lang.String format)
Returns vector of dates between given start and end timestamps. |
static java.util.Vector<java.lang.String> |
getHours(int startHour,
int endHour,
int stepMinutes)
Returns the hours between the given start and end hour. |
static java.util.Date |
parseDate(java.lang.String string)
Parse date in one of the formats: "dd.mm.yyyy", "dd.mm.yy", "yyyy.mm.dd", "dd-mm-yyyy", "yy-mm-dd", "yyyy-mm-dd", "mm/dd/yyyy", "mm/dd/yy" with one or two digits day and month and optional time in one of the formats: "hh:mm", "hh:mm:ss" with optional am/pm suffix |
static java.util.GregorianCalendar |
parseDateToCalendar(java.lang.String string)
Parse date in one of the formats: "dd.mm.yyyy", "dd.mm.yy", "yyyy.mm.dd", "dd-mm-yyyy", "yy-mm-dd", "yyyy-mm-dd", "mm/dd/yyyy", "mm/dd/yy" with one or two digits day and month and optional time in one of the formats: "hh:mm", "hh:mm:ss" with optional am/pm suffix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateTime()
| Method Detail |
|---|
public static java.util.Date parseDate(java.lang.String string)
string - String containing date representation
public static java.util.GregorianCalendar parseDateToCalendar(java.lang.String string)
string - String containing date representation
public static java.util.Vector<java.lang.String> getHours(int startHour,
int endHour,
int stepMinutes)
startHour - the period startendHour - the period endstepMinutes - the distance between the returned values
HH:mm format.
public static java.util.Vector<Pair> getDays(java.sql.Timestamp start,
java.sql.Timestamp end,
java.lang.String locale)
dd.MM.yyyy format, and the value is the same date in the format EEEE, dd. MMMM yyyy
and given locale.
start - the period startend - the period endlocale - the language for the locale to format the dates
public static java.util.Vector<Pair> getDays(java.sql.Timestamp start,
java.sql.Timestamp end,
java.lang.String locale,
java.lang.String format)
dd.MM.yyyy format, and the value is the same date in the format and locale defined by the given
paramters.
start - the period startend - the period endlocale - the language for the locale to format the datesformat - the dates format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||