提交 f45373e3 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Inline timestampWithTimeZoneToOffsetDateTime()

上级 9079cbd5
......@@ -461,12 +461,7 @@ public class LocalDateTimeUtils {
*/
public static Object valueToOffsetDateTime(Value value) {
ValueTimestampTimeZone valueTimestampTimeZone = (ValueTimestampTimeZone) value.convertTo(Value.TIMESTAMP_TZ);
return timestampWithTimeZoneToOffsetDateTime((TimestampWithTimeZone) valueTimestampTimeZone.getObject());
}
private static Object timestampWithTimeZoneToOffsetDateTime(
TimestampWithTimeZone timestampWithTimeZone) {
TimestampWithTimeZone timestampWithTimeZone = (TimestampWithTimeZone) valueTimestampTimeZone.getObject();
long dateValue = timestampWithTimeZone.getYMD();
long timeNanos = timestampWithTimeZone.getNanosSinceMidnight();
try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论