SYSTEMTIMEToSysTime

This function is Windows-Only.

Converts a SYSTEMTIME struct to a SysTime.

version(StdDdoc)
@safe
SYSTEMTIMEToSysTime
(
const scope SYSTEMTIME* st
,
immutable TimeZone tz = LocalTime()
)

Parameters

st SYSTEMTIME*

The SYSTEMTIME struct to convert.

tz TimeZone

The time zone that the time in the SYSTEMTIME struct is assumed to be (if the SYSTEMTIME was supplied by a Windows system call, the SYSTEMTIME will either be in local time or UTC, depending on the call).

Throws

std.datetime.date.DateTimeException if the given SYSTEMTIME will not fit in a SysTime, which is highly unlikely to happen given that SysTime.max is in 29,228 A.D. and the maximum SYSTEMTIME is in 30,827 A.D.

Meta