Package io.trino.testing
Class DateTimeTestingUtils
java.lang.Object
io.trino.testing.DateTimeTestingUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic SqlDatesqlDateOf(int year, int monthOfYear, int dayOfMonth) static SqlDatestatic SqlTimesqlTimeOf(int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) Deprecated.static SqlTimesqlTimeOf(int precision, int hour, int minuteOfHour, int secondOfMinute, int nanoOfSecond) static SqlTimestatic SqlTimeDeprecated.static SqlTimestampsqlTimestampOf(int precision, int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) static SqlTimestampsqlTimestampOf(int precision, long millis) static SqlTimestampsqlTimestampOf(int precision, LocalDateTime dateTime) Constructs standard (non-legacy) TIMESTAMP value corresponding to argumentstatic SqlTimestampsqlTimestampOf(int precision, org.joda.time.DateTime dateTime) static SqlTimestampsqlTimestampOf(long millis) Deprecated.static SqlTimestampsqlTimestampOf(org.joda.time.DateTime dateTime) Deprecated.static SqlTimestampWithTimeZonesqlTimestampWithTimeZoneOf(int precision, int year, int month, int day, int hour, int minute, int second, int nanoOfSecond, TimeZoneKey timeZoneKey) static SqlTimeWithTimeZonesqlTimeWithTimeZoneOf(int precision, int hour, int minuteOfHour, int secondOfMinute, int nanoOfSecond, int offsetMinutes)
-
Method Details
-
sqlDateOf
-
sqlDateOf
-
sqlTimeWithTimeZoneOf
public static SqlTimeWithTimeZone sqlTimeWithTimeZoneOf(int precision, int hour, int minuteOfHour, int secondOfMinute, int nanoOfSecond, int offsetMinutes) -
sqlTimestampWithTimeZoneOf
public static SqlTimestampWithTimeZone sqlTimestampWithTimeZoneOf(int precision, int year, int month, int day, int hour, int minute, int second, int nanoOfSecond, TimeZoneKey timeZoneKey) -
sqlTimestampOf
public static SqlTimestamp sqlTimestampOf(int precision, int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) -
sqlTimestampOf
Constructs standard (non-legacy) TIMESTAMP value corresponding to argument -
sqlTimestampOf
-
sqlTimestampOf
Deprecated. -
sqlTimestampOf
Deprecated. -
sqlTimestampOf
-
sqlTimeOf
public static SqlTime sqlTimeOf(int precision, int hour, int minuteOfHour, int secondOfMinute, int nanoOfSecond) -
sqlTimeOf
@Deprecated public static SqlTime sqlTimeOf(int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) -
sqlTimeOf
Deprecated. -
sqlTimeOf
-
sqlTimeOf(int precision, int hour, int minuteOfHour, int secondOfMinute, int nanoOfSecond)