Example #1
0
        public DateTime GetDate(ulong serial)
        {
            int day   = (int)((serial >> CSerialPosition.GetDayShift()) & CSerialPosition.BitDay);
            int month = (int)((serial >> CSerialPosition.GetMonthShift()) & CSerialPosition.BitMonth);
            int year  = (int)((serial >> CSerialPosition.GetYearShift()) & CSerialPosition.BitYear) + 1000;

            return(new DateTime(year, month, day));
        }
Example #2
0
 public uint GetProductID(ulong serial)
 {
     return((uint)((serial >> CSerialPosition.GetProductIDShift()) & CSerialPosition.BitProductID));
 }
Example #3
0
 public uint GetCustomerID(ulong serial)
 {
     return((uint)((serial >> CSerialPosition.GetCustomerIDShift()) & CSerialPosition.BitCustomerID));
 }