Sanjay  Darekar

Sanjay Darekar

  • NA
  • 61
  • 1.4k

Create Problem Time Addition

Oct 2 2015 9:11 AM
i have a scenario that i need to add time.
for example time is 11:50 pm and i need to add 30 minutes. So after addition it should show me 00:20 am with date.
write a code for this.
i tried this but i get a error after adding.
after addition it is showing me something like 1.00:20:00.
so i need to convert this to date time.
 
Select StopTypeAddressArrivalWaiting(Min)DepartureTraval(Min)
CZCZCPZZC8:00PM609:00PM0
ZCZCCPCVZVZ9:00PM209:20PM10
CZZGVZCPVZXVZV9:30PM109:40PM20
asgdsagCPsdgsdg10:00PM1010:10PM20
ZCCZZCPZCZCZC10:30PM6011:30PM0
CZCZCPZCZCC11:30 PM511:35 PM5
ZCZCCPZVZVZ11:40 PM1011:50 PM10
 
Arrival Time + waiting time = Departure Time 
and
Departure + Traval =  Next Arrival Time  
 
 
 

Answers (2)