The OpenD Programming Language

SysTime.toTimeVal

Returns a timeval which represents this SysTime.

Note that like all conversions in std.datetime, this is a truncating conversion.

If timeval.tv_sec is int, and the result can't fit in an int, then the closest value that can be held in 32 bits will be used for tv_sec. (so int.max if it goes over and int.min if it goes under).

struct SysTime
@safe const pure nothrow scope
timeval
toTimeVal
()

Meta