2.5.239 ShortDTR

The ShortDTR structure specifies date and time. The year, month, and day values MUST be consistent with the Gregorian calendar.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

year

month

day

hour

minute

second

weekday

year (2 bytes): An unsigned integer that specifies the year. MUST be greater than or equal to 1900 and less than or equal to 9999.

month (1 byte): An unsigned integer that specifies the month. MUST be greater than or equal to 1 and less than or equal to 12.

day (1 byte): An unsigned integer that specifies the day. MUST be greater than or equal to 1 and less than or equal to 31.

hour (1 byte): An unsigned integer that specifies the hour. MUST be greater than or equal to 0 and less than or equal to 23.

minute (1 byte): An unsigned integer that specifies the minute. MUST be greater than or equal to 0 and less than or equal to 59.

second (1 byte): An unsigned integer that specifies the second. MUST be greater than or equal to 0 and less than or equal to 59.

weekday (1 byte): An unsigned integer that specifies the weekday. The value MUST be one of the following:

Value

Meaning

0

The weekday is not specified.

1

Monday

2

Tuesday

3

Wednesday

4

Thursday

5

Friday

6

Saturday

7

Sunday