0
我想在Asettingtime和Bsettingtime當前時間
我如何比較 我改變我的時間選擇器? 什麼是最好的計劃? 使用日曆比較DATA值?時間比較與時間選擇器爲Android
dpd=new TimePickerDialog(SettingActivity.this,
new TimePickerDialog.OnTimeSetListener() {
@Override
public void onTimeSet(TimePicker view,
int hourOfDay, int minute) {
Toast.makeText(getApplicationContext(),
hourOfDay +"시 " + minute+"분 을 선택했습니다",
Toast.LENGTH_SHORT).show();
String sHour;
if(hourOfDay < 10){
sHour = "0"+hourOfDay;
} else {
sHour = String.valueOf(hourOfDay);
}
int sTime;
String sMinute = "00";
if(minute < 10){
sMinute = "0"+minute;
} else {
sMinute = String.valueOf(minute);
}