Java Code Examples for java.time.OffsetDateTime#toLocalDateTime()
The following examples show how to use
java.time.OffsetDateTime#toLocalDateTime() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DateTimeConverters.java From spring-analysis-note with MIT License | 4 votes |
@Override public LocalDateTime convert(OffsetDateTime source) { return source.toLocalDateTime(); }
Example 2
Source File: OffsetDateTimeHandle.java From alibaba-rsocket-broker with Apache License 2.0 | 4 votes |
public OffsetDateTimeHandle(OffsetDateTime o) { this.dateTime = o.toLocalDateTime(); this.offset = o.getOffset(); }
Example 3
Source File: DateTimeConverters.java From java-technology-stack with MIT License | 4 votes |
@Override public LocalDateTime convert(OffsetDateTime source) { return source.toLocalDateTime(); }
Example 4
Source File: OffsetDateTimeHandle.java From joyrpc with Apache License 2.0 | 4 votes |
@Override public void wrap(final OffsetDateTime time) { this.dateTime = time.toLocalDateTime(); this.offset = time.getOffset(); }
Example 5
Source File: DateTimeConverters.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public LocalDateTime convert(OffsetDateTime source) { return source.toLocalDateTime(); }
Example 6
Source File: DateTimeConverters.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public LocalDateTime convert(OffsetDateTime source) { return source.toLocalDateTime(); }
Example 7
Source File: PDTFactory.java From ph-commons with Apache License 2.0 | 4 votes |
@Nullable public static LocalDateTime createLocalDateTime (@Nullable final OffsetDateTime aDT) { return aDT == null ? null : aDT.toLocalDateTime (); }
Example 8
Source File: PersistentOffsetDateTimeAsStringAndStringOffset.java From jadira with Apache License 2.0 | 4 votes |
@Override protected Object[] toConvertedColumns(OffsetDateTime value) { return new Object[] { value.toLocalDateTime(), value.getOffset() }; }