cleanup times.nim
This commit is contained in:
parent
218679fc95
commit
77d56aaff6
2 changed files with 9 additions and 9 deletions
|
|
@ -73,7 +73,8 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string;
|
||||||
cbos copyFile:
|
cbos copyFile:
|
||||||
os.copyFile(getString(a, 0), getString(a, 1))
|
os.copyFile(getString(a, 0), getString(a, 1))
|
||||||
cbos getLastModificationTime:
|
cbos getLastModificationTime:
|
||||||
setResult(a, toSeconds(getLastModificationTime(getString(a, 0))))
|
# depends on Time's implementation!
|
||||||
|
setResult(a, int64(getLastModificationTime(getString(a, 0))))
|
||||||
|
|
||||||
cbos rawExec:
|
cbos rawExec:
|
||||||
setResult(a, osproc.execCmd getString(a, 0))
|
setResult(a, osproc.execCmd getString(a, 0))
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
## echo "Using predefined formats: ", getClockStr(), " ", getDateStr()
|
## echo "Using predefined formats: ", getClockStr(), " ", getDateStr()
|
||||||
##
|
##
|
||||||
## echo "epochTime() float value: ", epochTime()
|
## echo "epochTime() float value: ", epochTime()
|
||||||
## echo "getTime() float value: ", toSeconds(getTime())
|
|
||||||
## echo "cpuTime() float value: ", cpuTime()
|
## echo "cpuTime() float value: ", cpuTime()
|
||||||
## echo "An hour from now : ", now() + 1.hours
|
## echo "An hour from now : ", now() + 1.hours
|
||||||
## echo "An hour from (UTC) now: ", getTime().utc + initInterval(0,0,0,1)
|
## echo "An hour from (UTC) now: ", getTime().utc + initInterval(0,0,0,1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue