TimeField field = new TimeField(); DateWrapper wrap = new DateWrapper(1970, 1, 1); wrap = wrap.clearTime(); wrap = wrap.addHours(4); field.setMinValue(wrap.asDate()); field.setDateValue(new Date()); Time time = field.getValue(); Date d = time.getDate(); Time match = field.findModel(new Date()); field.setValue(match);
|
|
|
|