@Test public void testIfCanReturnSimpleDate() { DateTime complexDate = DateTime.now(); DateTime simpleDate = getDateTime(complexDate.getDayOfMonth() + "/" + complexDate.getMonthOfYear() + "/" + complexDate.getYear() + " " + complexDate.getHourOfDay() + ":" + complexDate.getMinuteOfHour()); Log.d(getClass().getName(), simpleDate.toString()); assertThat(AlarmContentUtils.getDateConvertedToSimple(complexDate), is(simpleDate)); }
public static DateTime getDateConvertedToSimple(DateTime date) { return DateTimeFormat.forPattern("dd/MM/yyyy HH:mm").parseDateTime( date.getDayOfMonth() + "/" + date.getMonthOfYear() + "/" + date.getYear() + " " + date.getHourOfDay() + ":" + date.getMinuteOfHour()); }
AlarmContentUtils { public static DateTime getDateConvertedToSimple(DateTime date) { return DateTimeFormat.forPattern("dd/MM/yyyy HH:mm").parseDateTime( date.getDayOfMonth() + "/" + date.getMonthOfYear() + "/" + date.getYear() + " " + date.getHourOfDay() + ":" + date.getMinuteOfHour()); } }
AlarmContentUtils { public static DateTime getDateConvertedToSimple(DateTime date) { return DateTimeFormat.forPattern("dd/MM/yyyy HH:mm").parseDateTime( date.getDayOfMonth() + "/" + date.getMonthOfYear() + "/" + date.getYear() + " " + date.getHourOfDay() + ":" + date.getMinuteOfHour()); }  }
AlarmContentUtils { public static DateTime getDateConvertedToSimple(DateTime date) { return DateTimeFormat.forPattern("dd/MM/yyyy HH:mm").parseDateTime( date.getDayOfMonth() + "/" + date.getMonthOfYear() + "/" + date.getYear() + " " + date.getHourOfDay() + ":" + date.getMinuteOfHour()); }  static String getTitle(String executionDateString); static String getTitle(DateTime executionDate); static String getTitleForWakeUpAt(DateTime timeToGoToSleep, DateTime executionDate); static DateTime getDateConvertedToSimple(DateTime date); static String getSummary(DateTime currentDate, DateTime executionDate); }
AlarmContentUtils { public static DateTime getDateConvertedToSimple(DateTime date) { return DateTimeFormat.forPattern("dd/MM/yyyy HH:mm").parseDateTime( date.getDayOfMonth() + "/" + date.getMonthOfYear() + "/" + date.getYear() + " " + date.getHourOfDay() + ":" + date.getMinuteOfHour()); }  static String getTitle(String executionDateString); static String getTitle(DateTime executionDate); static String getTitleForWakeUpAt(DateTime timeToGoToSleep, DateTime executionDate); static DateTime getDateConvertedToSimple(DateTime date); static String getSummary(DateTime currentDate, DateTime executionDate);  }