7-359
(DT=,DT<>,DT>,DT<=,DT<,DT>=)
1
2
3
4
6
6
7
8
7.15 Clock instructions
7.15.7 Date comparison (DT=,DT<>,DT>,DT<=,DT<,DT>=)
(a) The following figure shows the comparison example of dates.
The following table shows the conductive states resulting from performing the
comparison operation of the dates A, B, and C shown above.
Even if the objects to be compared are under the same condition, the comparison
operation results vary depending on the objects selected.
(b) Even if the dates to be compared do not exist practically, this instruction executes the
comparison operation for the objects with the settable dates in accordance with the
following condition.
• Date A: 2006/02/30 (This date is settable, though it does not exist.)
• Date B: 2007/03/29
• Date C: 2008/02/31 (This date is settable, though it does not exist.)
Comparison
objects
Comparison condition
A<B B<C A<C
Day
Month
Month, day
Year
Month, day
Year, month
Year, month, day
No objects
: Conductive : No-conductive
Comparison
objects
Comparison condition
A<B B<C A<C
Day
Month
Month, day
Year
Month, day
Year, month
Year, month, day
No objects
: Conductive : No-conductive
A
(2006/9/22)
B
(2007/6/23)
C
(2008/8/8)
2009/1/12008/1/12007/1/12006/1/1