diff options
author | coffeepots <coffeepots@users.noreply.github.com> | 2016-04-06 10:36:17 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2016-04-06 10:36:17 +0100 |
commit | d9ed61fa620a8196724cb51c4b18867cd03df7d9 (patch) | |
tree | a5fe1051650540a4e6d01b631e7404ee665dcf32 /lib/pure/endians.nim | |
parent | d1ba2d42bf97c3ea75a0e64eb6df6294b841bd1d (diff) | |
download | Nim-d9ed61fa620a8196724cb51c4b18867cd03df7d9.tar.gz |
Deprecate timeToTimeInfo, add str->time procs
* depreciate timeToTimeInfo, add str->time procs initTime allows creating times from strings. initTimeFromStr offers a default format string compatible with $Time. timeToTimeInterval changed to work properly. * Spell {.deprecated.} correctly * deprecated timeToTimeInfo, removed initTime procs Is it even worth depreciating timeToTimeInfo rather than just removing it, considering it's just wrong and we have getLocalTime and getGMTime that actually work? Also, if I'm renaming timeToTimeInfo -> toTimeInfo etc, isn't the deprecated tag kind of redundant? * Updated names for toTime and toTimeInterval procs * Added type to toTime template This should allow compilation of os.nim now that toTime is defined in times.nim. * Updated toTime template to use {.gensym.} Local templates default to 'bind' semantics, not 'gensym'. This was causing a failure to 'see' the local toTime template.
Diffstat (limited to 'lib/pure/endians.nim')
0 files changed, 0 insertions, 0 deletions