Date and time library

<< Click to Display Table of Contents >>

Navigation:  Project > Scripts > FBD language > Script objects of FBD language  >

Date and time library

Previous pageReturn to chapter overviewNext page

datelib

 

Current date and time - this script object used to get date and time components depending on Input value:

0 - get seconds.

1 - get minutes.

2 - get hour of the day considering AM/PM.

3 - get hour of the day.

4 - get day of the week (1-Sunday, 2-Monday…).

5 - get day of month.

6 - get month (0 - January, 1 - February…).

7 - get year.

8 - get minutes of the day (hour*60 + minutes).

 

Example:

 

dateex

 

Depending on Tag's value place parameter of the current date and time.

 

Tag

Tag2

7

2020