|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.util.ToDateParser
public class ToDateParser
Emulates Oracle's TO_DATE function.
This class holds and handles the input data form the TO_DATE-method
| Method Summary | |
|---|---|
static java.sql.Timestamp |
toDate(java.lang.String input,
java.lang.String format)
Parse a string as a date with the given format. |
java.lang.String |
toString()
|
static java.sql.Timestamp |
toTimestamp(java.lang.String input,
java.lang.String format)
Parse a string as a timestamp with the given format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public static java.sql.Timestamp toTimestamp(java.lang.String input,
java.lang.String format)
input - the inputformat - the format
public static java.sql.Timestamp toDate(java.lang.String input,
java.lang.String format)
input - the inputformat - the format
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||