Time code derivation

UED Time codes are 16bit values. Actually the are a special case of the 24bit physical property type code. Thus units code bit patterns 00000000_00000000_0001xxxx_xxxxxxxx are reservered for time codes.
   Bit 13 set to 1 denotes time
       Bit 12 set to 0 denotes a day or periods greater than a day.
           Bits 8-11 (4 bits) denote the following
           0 0 0 0  Unit time
           0 0 0 1  Day
           0 0 1 0  Week
           0 0 1 1  Fortnight (2 weeks)
           0 1 0 0  Month
           0 1 0 1  Quarter  (3 months)
           0 1 1 0  Trimester (4 month)
           0 1 1 1  Bienium (semester) (6 months)
           1 0 0 0  Year
           1 0 0 1  Decade    10^1
           1 0 1 0  Century   10^2
           1 0 1 1  Millenium 10^3

           Bits 1- 7 can be used to denote particular times for the given denoted period.
                Bit pattern 0 0 0 0 0 0 0 indicates the simple time period with no subdivision significance.
           I.e. for Day   the values 1 through 7 denote the days of the week Sunday = 1, Satuday = 7
                for Week  the values 1 through 52 denote the week of the year.
                for Month the values 1 through 12 denote the month of the year January = 1, December = 12
                for Quarter the values 1 through 4 denote the 4 quarters

           For Year, decade, century and millenium bit patterns other than 0 for bit 1-7 are undefined at this time.


       Bit 12 set to 1 denotes a fraction of a day
           Bit 10 - 11 (2 bits) denote the following:
           0 0 Fraction of second
               Bits 1 - 10 denote the fraction of the second in units of ten
               I.e. 0 0 0 0 0 0 0 0 1 is  10^-1 seconds
                                  1 1 is  10^-3 seconds (milliseconds)
           0 1 Second
           1 0 Minute
           1 1 Hour

              For second, minute, and hour bits, if bit 9 is set, then bits 1-8,
              encode individual units, for example second 0 through 59,
              minute 0 through 59 and hour 0 through 23.