You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
long hour = TimeUnit.HOURS.toMillis(1);
long halfHour = hour / 2;
long fifteenMin = hour / 4;
long tenMin = hour / 6;
long fiveMin = tenMin / 2;
//generate EPG for one day only
List d = getTime12To12();
long startTime = d.get(0);
long endTime = d.get(1);
Date date = new Date(startTime);
calendar.setTime(date);
int minutes = calendar.get(Calendar.MINUTE);
int diff = 60 - minutes;
//have only precise time from half and half an hour
startTime = startTime + diff * 60000;
timelineList = new ArrayList<>();
for (long i = startTime; i <= endTime; ) {
TimelineModel timelineModel = new TimelineModel();
timelineModel.setTime(i);
timelineList.add(timelineModel);
// i = i + halfHour ;
i = i + fiveMin;
}
I'm using 5 min for zooming but the program are missed placed even the timeline how to fix it ?
start date 12 am
end date 12 am
for one day only
The text was updated successfully, but these errors were encountered:
//generate EPG for one day only
List d = getTime12To12();
long startTime = d.get(0);
long endTime = d.get(1);
I'm using 5 min for zooming but the program are missed placed even the timeline how to fix it ?
start date 12 am
end date 12 am
for one day only
The text was updated successfully, but these errors were encountered: