August 13, 2014 [phobos] [D-Programming-Language/phobos] 42c215: Replace use of FracSec in SysTime's API with Durat... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: 42c2158efaee11fa19f4e9aabe5068dce6e2164a https://github.com/D-Programming-Language/phobos/commit/42c2158efaee11fa19f4e9aabe5068dce6e2164a Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Replace use of FracSec in SysTime's API with Duration. FracSec is overly verbose and based on the recent discussions with regards to Duration.get and Duration.split, it should be given the boot. The only non-deprecated place which uses it in Phobos is SysTime, so this deprecates the functions that use it, and replaces it with ones that expect a Duration of less than one second. This means replacing a SysTime constructor and SysTime's fracSec property. fracSecs is introduced to replace fracSec. It uses a Duration or takes a template argument for the units and then uses an int (essentially then creating an overload which is a shortcut for calling Duration.total or creating a Duration, depending on whether its the getter or the setter). Commit: 7f5e2f8cd77985d0b2450615d7752de780b587c4 https://github.com/D-Programming-Language/phobos/commit/7f5e2f8cd77985d0b2450615d7752de780b587c4 Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Replace fracSecToISOString and fracSecFromISOString. Commit: 74935db85f938caeb32fc1e18d087d185f986975 https://github.com/D-Programming-Language/phobos/commit/74935db85f938caeb32fc1e18d087d185f986975 Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Replace uses of FracSec.from!"msecs" with core.time.msecs. Commit: a9e48998bb4f0cd38d9497af69626e8063fa361d https://github.com/D-Programming-Language/phobos/commit/a9e48998bb4f0cd38d9497af69626e8063fa361d Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Replace uses of FracSec.from!"msecs" with core.time.msecs. Commit: 29cba72d8297e37e4e384c5a32b723d141f16d31 https://github.com/D-Programming-Language/phobos/commit/29cba72d8297e37e4e384c5a32b723d141f16d31 Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Replace uses of FracSec.from!"usecs" with core.time.usecs. Commit: 1e6a375af5d863631ec7d1d015c26f19895e7d43 https://github.com/D-Programming-Language/phobos/commit/1e6a375af5d863631ec7d1d015c26f19895e7d43 Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Replace uses of FracSec.from!"hnsecs" with core.time.hnsecs. Commit: 8752c521a51570f4a3671abf8086fe446ddfc66d https://github.com/D-Programming-Language/phobos/commit/8752c521a51570f4a3671abf8086fe446ddfc66d Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Replace uses of FracSec.from!"hnsecs" with core.time.hnsecs. Commit: a9b0ff100c4c751ef843b69bd3f2d36b222d2c8e https://github.com/D-Programming-Language/phobos/commit/a9b0ff100c4c751ef843b69bd3f2d36b222d2c8e Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Replace uses of FracSec.from!"hnsecs" with core.time.hnsecs. Commit: 521776fbdb06e6003d0b371593ffc9b1c1885089 https://github.com/D-Programming-Language/phobos/commit/521776fbdb06e6003d0b371593ffc9b1c1885089 Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Remove last undeprecated uses of SysTime.fracSec. Commit: 70324eadd8fc198ceb3c47ac7a989a8d4055d684 https://github.com/D-Programming-Language/phobos/commit/70324eadd8fc198ceb3c47ac7a989a8d4055d684 Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Clean up uses of zero-length Durations. Commit: d0a1a7bcf8d668072f1ec0639225f543d9514c38 https://github.com/D-Programming-Language/phobos/commit/d0a1a7bcf8d668072f1ec0639225f543d9514c38 Author: jmdavis <jmdavisProg@gmx.com> Date: 2014-07-30 (Wed, 30 Jul 2014) Changed paths: M std/datetime.d Log Message: ----------- Cleanup of a version-else block in std.datetime so that it has an else. Commit: 08137bff8ef437a99fe835ac05764afe6a0ce5e5 https://github.com/D-Programming-Language/phobos/commit/08137bff8ef437a99fe835ac05764afe6a0ce5e5 Author: H. S. Teoh <hsteoh@quickfur.ath.cx> Date: 2014-08-13 (Wed, 13 Aug 2014) Changed paths: M std/datetime.d Log Message: ----------- Merge pull request #2254 from jmdavis/fracSecs Replace use of FracSec in SysTime's API with Duration. Compare: https://github.com/D-Programming-Language/phobos/compare/05bdee0e3112...08137bff8ef4 |
Copyright © 1999-2021 by the D Language Foundation