Dv
public static bool IsNowTimeForSend(DateTime stime, int period)
{
int res;
var sHour = stime.Hour;
var nowHour = DateTime.Now.Hour;
if (sHour > nowHour)
{
res = sHour - nowHour;
}
else
{
res = nowHour - sHour;
}
var condition = res == period;
return condition;
}
return (nowHour - sHour) % period == 0
?