如何在开始时间和结束时间之间获得半小时的差异
$('#OutletEvents_start_time').datetimepicker({
datepicker:false,
format:'h:i a',
step:30,
onSelectTime: function() {
var time1 = $(this).val().split(':');
var endtime = parseInt(time1[0])+30;
$('#OutletEvents_end_time').val(time1[1]+':'+endtime);
}
});