Java Code Examples for org.joda.time.DateTime#toLocalTime()
The following examples show how to use
org.joda.time.DateTime#toLocalTime() .
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: TimestampColumnLocalTimeMapper.java From jadira with Apache License 2.0 | 5 votes |
@Override public LocalTime fromNonNullValue(Timestamp value) { DateTime dateTime = new DateTime(value.getTime()); LocalTime localTime = dateTime.toLocalTime(); return localTime; }
Example 2
Source File: TimeColumnLocalTimeMapper.java From jadira with Apache License 2.0 | 5 votes |
@Override public LocalTime fromNonNullValue(Time value) { DateTime dateTime = new DateTime(value.getTime()); LocalTime localTime = dateTime.toLocalTime(); return localTime; }
Example 3
Source File: TimestampColumnTimeOfDayMapper.java From jadira with Apache License 2.0 | 5 votes |
@Override public TimeOfDay fromNonNullValue(Timestamp value) { DateTime dateTime = new DateTime(value.getTime()); LocalTime localTime = dateTime.toLocalTime(); final TimeOfDay timeOfDay = new TimeOfDay(localTime.getHourOfDay(), localTime.getMinuteOfHour(), localTime.getSecondOfMinute(), localTime.getMillisOfSecond(), localTime.getChronology()); return timeOfDay; }
Example 4
Source File: TimeColumnTimeOfDayMapper.java From jadira with Apache License 2.0 | 5 votes |
@Override public TimeOfDay fromNonNullValue(Time value) { DateTime dateTime = new DateTime(value.getTime()); LocalTime localTime = dateTime.toLocalTime(); final TimeOfDay timeOfDay = new TimeOfDay(localTime.getHourOfDay(), localTime.getMinuteOfHour(), localTime.getSecondOfMinute(), localTime.getMillisOfSecond(), localTime.getChronology()); return timeOfDay; }
Example 5
Source File: JodaTimeConverters.java From spring-analysis-note with MIT License | 4 votes |
@Override public LocalTime convert(DateTime source) { return source.toLocalTime(); }
Example 6
Source File: JodaTimeConverters.java From java-technology-stack with MIT License | 4 votes |
@Override public LocalTime convert(DateTime source) { return source.toLocalTime(); }
Example 7
Source File: JodaTimeConverters.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public LocalTime convert(DateTime source) { return source.toLocalTime(); }
Example 8
Source File: JodaTimeConverters.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public LocalTime convert(DateTime source) { return source.toLocalTime(); }