View source code
Display the source code in std/datetime/systime.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Function std.datetime.systime.DosFileTimeToSysTime
Converts from DOS file date/time to SysTime
.
Parameters
Name | Description |
---|---|
dft | The DOS file time to convert. |
tz | The time zone which the DOS file time is assumed to be in. |
Throws
DateTimeException
if the DosFileTime
is
invalid.
Example
import std .datetime .date : DateTime;
// SysTime(DateTime(1980, 1, 1, 0, 0, 0))
writeln(DosFileTimeToSysTime(0b00000000001000010000000000000000));
// SysTime(DateTime(2107, 12, 31, 23, 59, 58))
writeln(DosFileTimeToSysTime(0b11111111100111111011111101111101));
writeln(DosFileTimeToSysTime(0x3E3F8456)); // SysTime(DateTime(2011, 1, 31, 16, 34, 44))
Authors
License
Copyright © 1999-2018 by the D Language Foundation | Page generated by ddox.