https://issues.dlang.org/show_bug.cgi?id=21033

--- Comment #5 from anonymous4 <[email protected]> ---
You can store Duration:
class A {
        Duration unixTime;
        synchronized void setTime(ref SysTime t) {
                unixTime = t-epoch;
        }
        synchronized SysTime getTime() {
                return epoch+unixTime;
        }
}

--

Reply via email to