mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 20:04:18 +00:00
bugfix: times.epochTime
This commit is contained in:
@@ -40,6 +40,15 @@ Core
|
||||
* `marshal <marshal.html>`_
|
||||
Contains procs for serialization and deseralization of arbitrary Nimrod
|
||||
data structures.
|
||||
|
||||
|
||||
Collections and algorithms
|
||||
--------------------------
|
||||
|
||||
* `hashtables <hashtables.html>`_
|
||||
Nimrod hash table support.
|
||||
* `lists <lists.html>`_
|
||||
Nimrod linked list support.
|
||||
|
||||
|
||||
String handling
|
||||
|
||||
@@ -69,7 +69,7 @@ proc defaultFilename*(): string =
|
||||
proc substituteLog*(frmt: string): string =
|
||||
## converts $date to the current date
|
||||
## converts $time to the current time
|
||||
## converts $app to getApplicationFilename()
|
||||
## converts $app to getAppFilename()
|
||||
## converts
|
||||
result = ""
|
||||
var i = 0
|
||||
@@ -80,7 +80,7 @@ proc substituteLog*(frmt: string): string =
|
||||
else:
|
||||
inc(i)
|
||||
var v = ""
|
||||
var app = getApplicationFilename()
|
||||
var app = getAppFilename()
|
||||
while frmt[i] in IdentChars:
|
||||
v.add(toLower(frmt[i]))
|
||||
inc(i)
|
||||
|
||||
@@ -295,8 +295,7 @@ when not defined(ECMAScript):
|
||||
when defined(posix):
|
||||
var a: Ttimeval
|
||||
posix_gettimeofday(a)
|
||||
result = toFloat(a.tv_sec) + toFloat(a.tv_usec)*0.001
|
||||
# why 0.001 instead of 0.00_0001? I don't know.
|
||||
result = toFloat(a.tv_sec) + toFloat(a.tv_usec)*0.00_0001
|
||||
elif defined(windows):
|
||||
var f: winlean.Filetime
|
||||
GetSystemTimeAsFileTime(f)
|
||||
|
||||
13
todo.txt
13
todo.txt
@@ -1,5 +1,5 @@
|
||||
- clean up the tests!
|
||||
- fake-consts, implict ref/ptr->var conversion
|
||||
- fake-consts, implicit ref/ptr->var conversion
|
||||
|
||||
|
||||
High priority (version 0.9.0)
|
||||
@@ -53,7 +53,7 @@ Low priority
|
||||
- real types for template results
|
||||
- generalized case statement (requires better transf)
|
||||
- tlastmod returns wrong results on BSD (Linux, MacOS X: works)
|
||||
- nested tuple unpacking; no auto-unpacking in 'for' loops!
|
||||
- nested tuple unpacking
|
||||
- better error messages for used keywords as identifiers
|
||||
- case statement branches should support constant sets
|
||||
- 'nimrod def': does not always work
|
||||
@@ -127,12 +127,3 @@ Other ideas
|
||||
- endsWith `=$`
|
||||
- ignore case `=?` --> `=$?` too?
|
||||
|
||||
|
||||
RST
|
||||
---
|
||||
- footnotes; prefix :i: whitespace before :i:, _reference, `reference`__
|
||||
__ anonymous: www.nimrod.org
|
||||
- rewrite the parser to use the new better look ahead technique that c2nim
|
||||
uses
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user