Merge branch 'devel' of github.com:Araq/Nim into patch2
This commit is contained in:
commit
770914bc16
3 changed files with 277 additions and 249 deletions
|
|
@ -541,6 +541,8 @@ elif defined(JS):
|
|||
|
||||
proc getTimezone(): int = result = newDate().getTimezoneOffset()
|
||||
|
||||
proc epochTime*(): float {.tags: [TimeEffect].} = newDate().toSeconds()
|
||||
|
||||
proc getDateStr*(): string {.rtl, extern: "nt$1", tags: [TimeEffect].} =
|
||||
## gets the current date as a string of the format ``YYYY-MM-DD``.
|
||||
var ti = getLocalTime(getTime())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue