Checking two TDateTime variables

后端 未结 2 703
萌比男神i
萌比男神i 2021-01-07 09:45

I am using C++ Builder and have the following question:

I am wanting to detect if a date/time is later than another date/time, and by how much.

Here is my cu

2条回答
  •  时光取名叫无心
    2021-01-07 10:13

    You can use your normal -, +, <, >,== and = with TDateTime.

    So to see if one date is ahead of another, you can, for example, subtract them and see if the result is greater or lesser than zero.

提交回复
热议问题