List of usage examples for org.joda.time LocalTime fromCalendarFields
public static LocalTime fromCalendarFields(Calendar calendar)
java.util.Calendar
using exactly the same field values. From source file:com.kccomy.orgar.ui.editor.NodeEditorFragment.java
License:Apache License
@Override public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute, int second) { Calendar calendar = Calendar.getInstance(); calendar.set(0, 0, 0, hourOfDay, minute, second); LocalTime time = LocalTime.fromCalendarFields(calendar); scheduledTimeBtn.setText(time.toString(TIME_FORMAT)); scheduledTime = time;//from w w w . j a v a2 s. c om scheduledDate.withTime(time.getHourOfDay(), time.getMinuteOfHour(), 0, 0); }