Package org.apache.calcite.util
Class DateTimeStringUtils
java.lang.Object
org.apache.calcite.util.DateTimeStringUtils
Utility methods to manipulate String representation of DateTime values.
- See Also:
-
DateTimeUtils
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleDateFormat
getDateFormatter
(String format) Create a SimpleDateFormat with format string with default time zone UTC.static SimpleDateFormat
getDateFormatter
(String format, TimeZone timeZone) Create a SimpleDateFormat with format string and time zone.
-
Field Details
-
ISO_DATETIME_FORMAT
The SimpleDateFormat string for ISO timestamps, "yyyy-MM-dd'T'HH:mm:ss'Z'".- See Also:
-
ISO_DATETIME_FRACTIONAL_SECOND_FORMAT
The SimpleDateFormat string for ISO timestamps with precisions, "yyyy-MM-dd'T'HH:mm:ss .SSS'Z'"- See Also:
-
-
Method Details
-
getDateFormatter
Create a SimpleDateFormat with format string with default time zone UTC. -
getDateFormatter
Create a SimpleDateFormat with format string and time zone.
-