Merge branch 'master' of github.com:Araq/Nimrod
This commit is contained in:
commit
7ec9b042e4
1 changed files with 5 additions and 5 deletions
|
|
@ -379,15 +379,15 @@ proc getClockStr*(): string {.rtl, extern: "nt$1".} =
|
|||
|
||||
proc `$`*(day: TWeekDay): string =
|
||||
## stingify operator for ``TWeekDay``.
|
||||
let lookup: array[TWeekDay, string] = ["Monday", "Tuesday", "Wednesday", "Thursday",
|
||||
"Friday", "Saturday", "Sunday"]
|
||||
const lookup: array[TWeekDay, string] = ["Monday", "Tuesday", "Wednesday",
|
||||
"Thursday", "Friday", "Saturday", "Sunday"]
|
||||
return lookup[day]
|
||||
|
||||
proc `$`*(m: TMonth): string =
|
||||
## stingify operator for ``TMonth``.
|
||||
let lookup: array[TMonth, string] = ["January", "February", "March", "April",
|
||||
"May", "June", "July", "August", "September", "October", "November",
|
||||
"December"]
|
||||
const lookup: array[TMonth, string] = ["January", "February", "March",
|
||||
"April", "May", "June", "July", "August", "September", "October",
|
||||
"November", "December"]
|
||||
return lookup[m]
|
||||
|
||||
{.pop.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue