作成時間と変更時間を見つけるプログラムを書いています。バイト配列がある場合、4 バイトを整数に変換します。整数を時間に変換する方法は?
byte []a = new byte [8];
a[0] = 5;
a[1] = 8;
a[2] = 0;
a[3] = 19;
a[4] = 77;
a[5] = 54;
a[6] = 0;
a[7] = 9;
//convert byte into integer
Int32 creationtime = BitConverter.ToInt32(a,0);
Int32 modificationtime = BitConverter.ToInt32(a, 4);