if (tfTimeIn.getValue() != null && tfTimeOut.getValue() != null) {
Long min1 = tfTimeOut.getMinutesValue();
Long min2 = tfTimeIn.getMinutesValue();
Long hr1 = tfTimeOut.getHoursValue();
Long hr2 = tfTimeIn.getHoursValue();
// Here I need the calculations
String hrsTotalString = hrsTotal.toString();
String minTotalString = minTotal.toString();
tfTotalTime.setValue(hrsTotalString + ":" + minTotalString);
}
这是代码。我想从单独的下拉框中计算总时间。