public bool IsBetween(TimeField start, TimeField stop) { if (start.Hour <= Hour && Hour <= stop.Hour) { if (start.Minute <= Minute && Minute <= stop.Minute) { if (start.Second <= Second && Second <= stop.Second) { return true; } else { return false; } } else { return false; } } else { return false; } }
public bool IsBetween(TimeField start, TimeField stop) { if (start.Hour <= Hour && Hour <= stop.Hour) { if (start.Minute <= Minute && Minute <= stop.Minute) { if (start.Second <= Second && Second <= stop.Second) { return(true); } else { return(false); } } else { return(false); } } else { return(false); } }