ESET Online Help

Search
Select the category
Select the topic

DateTime

Allows you to write rules that are triggered only at a specified time.

Property

Type

Description

Example

DayOfWeek

Int

Trigger the rule only on certain days of the week

Possible values are:

0—Sunday

1—Monday

2—Tuesday

3—Wednesday

4—Thursday

5—Friday

6—Saturday

Hour

Int

Trigger the rule only in certain parts of the day. Possible values are 0 to 23

12

Minute

Int

Trigger the rule only in certain parts of the day.

Possible values are 0 to 59

30

 

Example:

This rule is triggered every time the Notepad is opened from Monday to Friday between 9 a.m. to 5 p.m.

<definition>

 <process>

         <operator type="and">

                 <condition component="FileItem" property="FileNameWithoutExtension" condition="is" value="Notepad" />

                 <condition component="DateTime" property="Hour" condition="greaterOrEqual" value="9" />

                 <condition component="DateTime" property="Hour" condition="lessOrEqual" value="17" />

                 <condition component="DateTime" property="DayOfWeek" condition="greaterOrEqual" value="1" />

                 <condition component="DateTime" property="DayOfWeek" condition="lessOrEqual" value="5" />

         </operator>

 </process>

</definition>

 

DateTime component is supported by all operations.