The OpenD Programming Language

SysTimeToDosFileTime

Converts from SysTime to DOS file date/time.

@safe
SysTimeToDosFileTime

Parameters

sysTime SysTime

The SysTime to convert.

Throws

std.datetime.date.DateTimeException if the given SysTime cannot be converted to a DosFileTime.

Examples

import std.datetime.date : DateTime;

assert(SysTimeToDosFileTime(SysTime(DateTime(1980, 1, 1, 0, 0, 0))) == 0b00000000001000010000000000000000);
assert(SysTimeToDosFileTime(SysTime(DateTime(2107, 12, 31, 23, 59, 58))) == 0b11111111100111111011111101111101);
assert(SysTimeToDosFileTime(SysTime(DateTime(2011, 1, 31, 16, 34, 44))) == 0x3E3F8456);

Meta