Time Function

 

Hi,

i'm struggling with time function. What i need to do is quite basic:

need to check if current time is between 5.55 am and 6.10 am

had a look at all the functions, but still bit puzzled.

thanks

 
string StartTime = "5:55";
string EndTime = "6:10";

if (TimeCurrent() >= StrToTime(StartTime) && TimeCurrent() <= StrToTime(EndTime))
   {
   //do something
   }
Reason: