Remove some deprecated procs from std/times (#14129)

This commit is contained in:
Oscar Nihlgård
2020-04-27 14:42:29 +02:00
committed by GitHub
parent b8d7a98265
commit 664cb2c0be
2 changed files with 32 additions and 144 deletions

View File

@@ -684,7 +684,7 @@ template uri*(address = "", absolute = true, addScriptName = true): untyped =
proc daysForward*(days: int): DateTime =
## Returns a DateTime object referring to the current time plus ``days``.
return getTime().utc + initInterval(days = days)
return getTime().utc + initTimeInterval(days = days)
template setCookie*(name, value: string, expires="",
sameSite: SameSite=Lax): typed =