At a Glance

The Date and Time type coded in 64 bit format contains the following information:

  • The year coded in a 16-bit field (4 most significant half-bytes)

  • the month coded in an 8-bit field (2 half bytes)

  • the day coded in an 8-bit field (2 half bytes)

  • the hour coded in an 8-bit field (2 half bytes)

  • the minutes coded in an 8-bit field (2 half bytes)

  • the seconds coded in an 8-bit field (2 half bytes)

NOTE: The 8 least significant bits are unused.

Example: Representation in BCD format of the date and Time 2000-09-20:13:25:47.

Year (2000)

Month (09)

Day (20)

Hour (13)

Minute (25)

Seconds (47)

Least significant byte

0010 0000 0000 0000

0000 1001

0010 0000

0001 0011

0010 0101

0100 0111

Unused

Syntax Rules

The Date and Time type is entered as follows:

DT#<Year>-<Month>-<Day>-<Hour>:<Minutes>:<Seconds>

This table shows the lower/upper limits in each field.

Field

Limits

Comment

Year

[1990,2099]

 

Month

[01,12]

The left 0 is always displayed, but can be omitted during entry

Day

[01,31]

For the months 01\03\05\07\08\10\12

[01,30]

For the months 04\06\09\11

[01,29]

For the month 02 (leap years)

[01,28]

For the month 02 (non leap years)

Hour

[00,23]

The left 0 is always displayed, but can be omitted during entry

Minute

[00,59]

The left 0 is always displayed, but can be omitted during entry

Second

[00,59]

The left 0 is always displayed, but can be omitted during entry

Example:

Entry

Comment

DT#2000-1-10-0:40:0

The left 0 of the month\hour\second can be omitted

dt#1999-12-31-23:59:59

The prefix can be written in lower case

Dt#1990-10-2-12:02:30

The prefix can be mixed (lower\upper case)