W3C

Edit comment LC-2105 for Efficient Extensible Interchange Working Group

Quick access to

Previous: LC-2104 Next: LC-2169

Comment LC-2105
:
Commenter: Mohamed ZERGAOUI <innovimax@gmail.com>

or
Resolution status:

In 7.1.8 Date-Time

You choose to encode Date-Time, the following way

Year Offset from 2000
Integer ( 7.1.5 Integer)
MonthDay Month * 32 + Day 9-bit
Unsigned Integer (7.1.9 n-bit Unsigned Integer) where day is a value
in the range 1-31 and month is a value in the range 1-12.
Time ((Hour * 60) + Minutes) * 60 + seconds 17-bit Unsigned
Integer (7.1.9 n-bit Unsigned Integer)
FractionalSecs Fractional seconds Unsigned Integer ( 7.1.6 Unsigned
Integer) representing the fractional part of the seconds with digits
in reverse order to preserve leading zeros
TimeZone TZHours * 60 + TZMinutes 11-bit Unsigned
Integer (7.1.9 n-bit
Unsigned Integer) representing a signed integer offset by 840 ( = 14 *
60 )
presence Boolean presence indicator Boolean (7.1.2 Boolean)




Since you have aligned MonthDay on 5 bits with <<Month * 2^5 + Day>>
I propose to align the Hour/Minute/Seconds on 6 bits

with

Time : (Hour * 2^6 + Minutes) * 2^6 + seconds so as to replace
multiplication by 60 with SHL
and
TimeZone : TZHours * 2^6 + TZMinutes
(space separated ids)
(Please make sure the resolution is adapted for public consumption)


Developed and maintained by Dominique Hazaël-Massieux (dom@w3.org).
$Id: 2105.html,v 1.1 2017/08/11 06:44:19 dom Exp $
Please send bug reports and request for enhancements to w3t-sys.org