2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-06-27 14:53:11 +00:00
This commit is contained in:
2020-03-21 12:52:20 +03:00
parent c3ef064b19
commit 586088aad9
8 changed files with 112 additions and 81 deletions

View File

@ -587,10 +587,10 @@ class DC with IterableMixin<int>
_dv.setUint64(offset, value);
}
setDateTime(offset, value)
setDateTime(offset, DateTime value)
{
// Unix Epoch
var ticks = 621355968000000000 + (value.getTime() * 10000);
var ticks = UNIX_EPOCH + (value.millisecondsSinceEpoch * 10000);
this.setUint64(offset, ticks);
}