summary refs log tree commit diff stats
path: root/tests/macros/tprintf.nim
diff options
context:
space:
mode:
authorcoffeepots <coffeepots@users.noreply.github.com>2016-04-06 10:36:17 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2016-04-06 10:36:17 +0100
commitd9ed61fa620a8196724cb51c4b18867cd03df7d9 (patch)
treea5fe1051650540a4e6d01b631e7404ee665dcf32 /tests/macros/tprintf.nim
parentd1ba2d42bf97c3ea75a0e64eb6df6294b841bd1d (diff)
downloadNim-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 'tests/macros/tprintf.nim')
0 files changed, 0 insertions, 0 deletions
f='#n137'>137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285