You can check for the time of day
If(Time Of Day(:DT) == In Hours(4),
1
,
0
);
Few examples
Show(
Time Of Day(03Jun2024:04:00:00) == In Hours(4), // 1
Time Of Day(03Jun2024:04:10:00) == In Hours(4), // 0
Time Of Day(03Jun2024:05:00:00) == In Hours(4) // 0
);
-Jarmo