How to compare datetime in Rule

Hello,
I want to compare trigger’s datetime with current time in rules.
For expample, some action will only execute on work time, which means trigger time should between 9:00 and 18:00, Monday - Friday.
I can’t find any jinja example timediff_lt or timediff_gt in example pack.
Any suggestions?