Ejemplo n.º 1
0
  public static void duracion(Long id) {
    Competition competition = Competition.findById(id);

    DateTime startTime = new DateTime(competition.startTime);
    DateTime endTime = new DateTime(competition.endTime);
    DateTime duration = competition.duration;

    String inputDateTime = "HH:mm:ss";
    String reprStartTime = startTime.toString(inputDateTime);

    renderText(reprStartTime);
  }
Ejemplo n.º 2
0
 public static Date toJavaDate(DateTime dt) {
   return new Date(dt.getMillis());
 }