Package com.tietoenator.trip.jxp.session
Class TdbDateform
java.lang.Object
com.tietoenator.trip.jxp.session.TdbDateform
Date/time formatting and parsing for the current TRIP dateform.
An instance of this class is obtained via the TdbSession method
getCurrentDateform().
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionformatDate
(String value) Parses a string with a TRIP DATE value into a Java Date.formatDate
(Date value) Formats a Java Date into a TRIP DATE string.formatTime
(String value) Parses a string with a TRIP TIME value into a Java Date.formatTime
(Date value) Formats a Java Date into a TRIP TIME string.formatTimestamp
(String dateTimeValue) Parses a string with a TRIP time stamp string (such as the lastUpdated value for database designs available via TdbDatabaseDesign) into a Java Date object.formatTimestamp
(String dateValue, String timeValue) Parses a string with a TRIP DATE value and a string with a TRIP TIME value into a single Java Date object.int
Retrieves the number of the date form represented by this object.
-
Method Details
-
getDateformNumber
public int getDateformNumber()Retrieves the number of the date form represented by this object. -
formatDate
Parses a string with a TRIP DATE value into a Java Date.- Parameters:
value
- String with a TRIP DATE value.- Returns:
- Java Date object
- Throws:
TdbException
-
formatDate
Formats a Java Date into a TRIP DATE string.- Parameters:
value
- Java date object.- Returns:
- Date formatted as a string in the current TRIP dateform.
-
formatTime
Formats a Java Date into a TRIP TIME string.- Parameters:
value
- Java date object.- Returns:
- The time part of the date object formatted as a string.
-
formatTime
Parses a string with a TRIP TIME value into a Java Date.- Parameters:
value
- String with a TRIP TIME value.- Returns:
- Java Date object
- Throws:
ParseException
-
formatTimestamp
Parses a string with a TRIP DATE value and a string with a TRIP TIME value into a single Java Date object.- Parameters:
dateValue
- Date value in the current TRIP dateform.timeValue
- TRIP time value- Returns:
- Java Date object
- Throws:
TdbException
-
formatTimestamp
Parses a string with a TRIP time stamp string (such as the lastUpdated value for database designs available via TdbDatabaseDesign) into a Java Date object.- Parameters:
dateTimeValue
- Time stamp string where the date part is in the current TRIP dateform.- Returns:
- Java Date object
- Throws:
TdbException
-