Results 1 to 2 of 2
Jan 20, 2013, 14:29 #1
- Join Date
- Jan 2013
- Lisboa, Portugal
- 0 Post(s)
- 0 Thread(s)
Build a Time Loop select after have some info from XML
I need some help with following.
I'm acessing one car rental webservice and i already get some values from it. They are for example:
Schedule weekdays hours:
Schedule about Lunch hours
Schedule about Saturday hours:
Schedule about Sunday hours:
I need create one select with options inside...
i need show hours at 15 minute intervals:
WeekDayOpen: 08:00 or SaturDayOpen: 08:00 or SunDayOpen: 08:00 depending on the day of the week
12:45 (last time before lunch)
WeekdayLunchIni: 13:00 (will not appear, only to be considered from monday to friday)
WeekdayLunchFim: 14:00 (will not appear, only to be considered from monday to friday)
14:15 (first time after lunch)
WeekDayClose: 20:00 or SaturDayClose: 20:00 or SunDayClose: 20:00 (depending on the day of the week)
I know use Weekday, Arrays e TimeSerial, however my problem is create correct range from Open to Close ?
I use TimeSerial(HoraAbertura,min,sec), but i don't know formula to create number correct of steps of 15 minutes, i never get correct range...
Or have less that i want (close hour) or more, never correct close hour.
Any help is welcome.