Guest User

Untitled

a guest
Jan 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. TDateTime appDateFromVector = TimeOf(appointmentsForFind[i].getAppDateTime());
  2. DateTime appDateFromControl = TimeOf(DateTimePickerAppointmentTime->Time);
  3.  
  4. if (appDateFromVector == appDateFromControl)
  5.  
  6. TDateTime TimeA, TimeB;
  7.  
  8. // offset TimeB by one hour
  9. TimeA = Now();
  10. TimeB = IncHour(TimeA, 1);
  11.  
  12. // use CompareTime function
  13. if (CompareTime(TimeA, TimeB) == EqualsValue)
  14. {
  15. ShowMessage("Both times are equal.");
  16. }
  17.  
  18. // use SameTime funtion
  19. if (SameTime(TimeA, TimeB))
  20. {
  21. ShowMessage("Both times are equal.");
  22. }
Add Comment
Please, Sign In to add comment