Package org.cristalise.kernel.utils
Class DateUtility
java.lang.Object
org.cristalise.kernel.utils.DateUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longdiff(GTimeStamp date1, GTimeStamp date2) static GTimeStampstatic GTimeStampstatic intgetNbDayInMonth(GTimeStamp date) static intgetNbDayInYear(GTimeStamp date) static GTimeStampgetNow()static StringgetSQLFormat(GTimeStamp timeStamp) static GTimeStampparseTimeString(String time) static GTimeStampsetToNow(GTimeStamp date) static Stringstatic StringtimeToString(GTimeStamp timeStamp) Return the TimeStamp in a form that will convert nicely to a String: YYYY-MM-DD HH:MI:SS.sssstatic DatetoDate(GTimeStamp gts) static OffsetDateTimestatic TimestamptoSqlTimestamp(GTimeStamp gts)
-
Constructor Details
-
DateUtility
public DateUtility()
-
-
Method Details
-
setToNow
-
getNow
-
getSQLFormat
-
getNbDayInYear
-
getNbDayInMonth
-
diff
-
parseTimeString
- Throws:
InvalidDataException
-
timeToString
Return the TimeStamp in a form that will convert nicely to a String: YYYY-MM-DD HH:MI:SS.sss- Parameters:
timeStamp-- Returns:
- Return the formatted TimeStamp
-
toOffsetDateTime
-
fromOffsetDateTime
-
fromSqlTimestamp
-
toSqlTimestamp
-
toDate
-
timeStampToUtcString
-