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)); }
public uint GetProductID(ulong serial) { return((uint)((serial >> CSerialPosition.GetProductIDShift()) & CSerialPosition.BitProductID)); }
public uint GetCustomerID(ulong serial) { return((uint)((serial >> CSerialPosition.GetCustomerIDShift()) & CSerialPosition.BitCustomerID)); }