Exemplo n.º 1
0
 public Byte MTF_SECOND(MTF_DATE_TIME X) => (Byte)(X.array[4] & 0x3F);
Exemplo n.º 2
0
 public Byte MTF_MINUTE(MTF_DATE_TIME X) => (Byte)(((X.array[3] & 0x0F) << 2) | ((X.array[4] & 0xC0) >> 6));
Exemplo n.º 3
0
 public Byte MTF_HOUR(MTF_DATE_TIME X) => (Byte)(((X.array[2] & 0x01) << 4) | ((X.array[3] & 0xF0) >> 4));
Exemplo n.º 4
0
 public Byte MTF_DAY(MTF_DATE_TIME X) => (Byte)((X.array[2] & 0x3E) >> 1);
Exemplo n.º 5
0
 public Byte MTF_MONTH(MTF_DATE_TIME X) => (Byte)(((X.array[1] & 0x03) << 2) | ((X.array[2] & 0xC0) >> 6));
Exemplo n.º 6
0
 /* macros for reading the MTF_DATE_TIME type */
 public UInt16 MTF_YEAR(MTF_DATE_TIME X) => (UInt16)((X.array[0] << 6) | (X.array[1] >> 2));