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.SysTime.toTimeVal
Returns a timeval
which represents this SysTime
.
core .sys .posix .sys .time .timeval toTimeVal() pure nothrow scope @safe const;
Note that like all conversions in std.datetime, this is a truncating conversion.
If timeval
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
if it goes over and int
if it
goes under).
Authors
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.