Encoding Date Value

Encoding Date Value SearchSearch
Author Message
Anonymous
 
Posted on Thursday, November 27, 2003 - 03:30 pm:   

Hi,
I am building PDUs and stuck in encoding date value. Can anybody help me out in that?
Regards,
Raj
hejinping
New member
Username: Hejinping

Post Number: 3
Registered: 11-2003
Posted on Friday, November 28, 2003 - 01:58 am:   

Please express your problem more clearly,
yanxh
New member
Username: Yanxh

Post Number: 6
Registered: 11-2003
Posted on Monday, December 01, 2003 - 01:39 am:   

Date-value = Long-integer
; The encoding of dates shall be done in number of seconds from 1970-01-01, 00:00:00 GMT.
Long-integer = Short-length Multi-octet-integer
; The Short-length indicates the length of the Multi-octet-integer
Multi-octet-integer = 1*30 OCTET
; The content octets shall be an unsigned integer value
; with the most significant octet encoded first (big-endian representation).
; The minimum number of octets must be used to encode the value.
"big-endian" means to encode high bit firstly,then low bit.
could you understand me?