Example usage for org.joda.time TimeOfDay toLocalTime

List of usage examples for org.joda.time TimeOfDay toLocalTime

Introduction

In this page you can find the example usage for org.joda.time TimeOfDay toLocalTime.

Prototype

public LocalTime toLocalTime() 

Source Link

Document

Converts this object to a LocalTime with the same time and chronology.

Usage

From source file:de.avanux.smartapplianceenabler.appliance.DayTimeframe.java

License:Open Source License

private LocalDateTime toDateTimeToday(TimeOfDay timeOfDay) {
    return new LocalDate().toLocalDateTime(timeOfDay.toLocalTime());
}

From source file:org.jadira.usertype.dateandtime.joda.columnmapper.IntegerColumnTimeOfDayMapper.java

License:Apache License

@Override
public Integer toNonNullValue(TimeOfDay value) {
    return value.toLocalTime().millisOfDay().get();
}

From source file:org.jadira.usertype.dateandtime.joda.columnmapper.LongColumnTimeOfDayMapper.java

License:Apache License

@Override
public Long toNonNullValue(TimeOfDay value) {
    return Long.valueOf((value.toLocalTime().getMillisOfDay()) * 1000000L);
}