I have to date/times
e.g 19/11/2004 12:34:43 and 19/11/2004 12:38:12
i want to to write a function that tells me if the 1st DateTime is greater or less than 5 minutes before the 2nd DateTime
Its the 5 min bit that im struggling on
Date1 < Date2 - tells me if 1 is less than 2 but how do i do the 5 min bit
e.g 19/11/2004 12:34:43 and 19/11/2004 12:38:12
i want to to write a function that tells me if the 1st DateTime is greater or less than 5 minutes before the 2nd DateTime
Its the 5 min bit that im struggling on
Date1 < Date2 - tells me if 1 is less than 2 but how do i do the 5 min bit