Initial import
This commit is contained in:
commit
405b86068e
324 changed files with 163599 additions and 0 deletions
16
tests/tlastmod.nim
Executable file
16
tests/tlastmod.nim
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
# test the new LastModificationTime() proc
|
||||
|
||||
import
|
||||
io, os, times
|
||||
|
||||
proc main() =
|
||||
var
|
||||
a, b: TTime
|
||||
a = getLastModificationTime(ParamStr(1))
|
||||
b = getLastModificationTime(ParamStr(2))
|
||||
if a < b:
|
||||
Write(stdout, "b is newer than a\n")
|
||||
else:
|
||||
Write(stdout, "a is newer than b\n")
|
||||
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue