Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
誰かが私を助けることができますか?値を持つバイト [2] があります。
byte[0] = 113 byte[1] = 66
この 2 バイトから DOS 日付形式で日付を取得するにはどうすればよいですか?
@HansPassantが言ったように...
byte[] bytes = new byte[] { 113, 66 }; var day = (bytes[0] >> 3); var month = ((bytes[0] & 0x7) << 1) | (bytes[1] >> 7); var year = (bytes[1] >> 1) + 1980;
2013/02/14