Vote count:
0
I have a TimeSpan variable that can be some time like 10:00:00 or some time like 10:23:00 And also I have another TimeSpan variable that is used to set the time interval, currently as default it is set on one hour intervals so 1:00:00
I am looking for a good way to determine if my timespan variable falls into my interval or not? For example if interval is every one hour then 10:00:00 is ok because we have hours or 1,2,3,4,5,etc.. but 10:23:00 is not ok because we have 10 and 11 but not 10:23
Is there any built in .NET way to determine this? if there is not then what is a good way to determine this.
asked 23 secs ago
Aucun commentaire:
Enregistrer un commentaire