2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-05-06 12:32:58 +00:00
This commit is contained in:
Esiur Project 2022-06-24 00:47:09 +03:00
parent 270474ac78
commit 551f0f4684

View File

@ -646,9 +646,13 @@ export default class DC extends Uint8Array
setDateTime(offset, value, endian)
{
if (!isNaN(value)){
// Unix Epoch
var ticks = 621355968000000000 + (value.getTime() * 10000);
this.setUint64(offset, ticks, endian);
} else {
this.setUint64(offset, 0, endian);
}
}
getDateTime(offset, endian)