Merge branch 'devel' of github.com:Araq/Nim into patch2

This commit is contained in:
fowlmouth 2015-04-02 01:56:44 -05:00
commit 770914bc16
3 changed files with 277 additions and 249 deletions

View file

@ -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())