Split from: how to make cluster on map of nearest 1 or 2 locations depending upon radius/distance
i have 3 condition of time in if loops but in any case code is not executing in that condition giving only one output [1] "Enter Valid Time" please guide why loop is not runing i am giving the following input of time :-
" 2020-3-29 15:00:00 PST"
deltime=readline(prompt="Please enter deliery date and time\t") # for input of date and time
T=as.POSIXlt.character(deltime) # to pass the time in formate R accepts
if(Sys.time()+60*30 < T){
repeat{
print("A")
#Sys.sleep(60)
if(orders==0||Sys.time()+60*30==T){
break
}
}
}else if(Sys.time()+60*30==T){
print(paste("Cost for dedicated veh",loc,totalcostfordedvehs))}
}else if(Sys.time()+60*30>T){
print("Enter Valid Time")
}