Bug 19453 – Remove unnecessary error checks in std.datetime.systime.currStdTime()

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-11-30T11:01:36Z
Last change time
2018-12-18T17:29:43Z
Assigned to
No Owner
Creator
Nathan S.
See also
https://issues.dlang.org/show_bug.cgi?id=19280

Comments

Comment #0 by n8sh.secondary — 2018-11-30T11:01:36Z
Comment #1 by n8sh.secondary — 2018-11-30T11:14:27Z
Comment #2 by github-bugzilla — 2018-12-18T17:29:42Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/0f20fa219cd6d55db02b76e91de45ed344e4cc23 Fix Issue 19453 - Remove unnecessary error checks in std.datetime.systime.currStdTime() Posix gettimeofday called with a valid timeval address and a null second parameter doesn't fail. Posix clock_gettime called with a valid clock_id is only permitted to fail if the number of seconds does not fit in time_t. https://github.com/dlang/phobos/commit/deac4ed9472f51f59f15d90feb3355dfd7b86e9c Merge pull request #6785 from n8sh/issue-19453 Fix Issue 19453 - Remove unnecessary error checks in std.datetime.systime.currStdTime() merged-on-behalf-of: Sebastian Wilzbach <[email protected]>