nimTitle times times.html module std/times 0 nim mJan times.html#mJan Month.mJan 260 nim mFeb times.html#mFeb Month.mFeb 260 nim mMar times.html#mMar Month.mMar 260 nim mApr times.html#mApr Month.mApr 260 nim mMay times.html#mMay Month.mMay 260 nim mJun times.html#mJun Month.mJun 260 nim mJul times.html#mJul Month.mJul 260 nim mAug times.html#mAug Month.mAug 260 nim mSep times.html#mSep Month.mSep 260 nim mOct times.html#mOct Month.mOct 260 nim mNov times.html#mNov Month.mNov 260 nim mDec times.html#mDec Month.mDec 260 nim Month times.html#Month enum Month 260 nim dMon times.html#dMon WeekDay.dMon 276 nim dTue times.html#dTue WeekDay.dTue 276 nim dWed times.html#dWed WeekDay.dWed 276 nim dThu times.html#dThu WeekDay.dThu 276 nim dFri times.html#dFri WeekDay.dFri 276 nim dSat times.html#dSat WeekDay.dSat 276 nim dSun times.html#dSun WeekDay.dSun 276 nim WeekDay times.html#WeekDay enum WeekDay 276 nim MonthdayRange times.html#MonthdayRange type MonthdayRange 286 nim HourRange times.html#HourRange type HourRange 287 nim MinuteRange times.html#MinuteRange type MinuteRange 288 nim SecondRange times.html#SecondRange type SecondRange 289 nim YeardayRange times.html#YeardayRange type YeardayRange 292 nim NanosecondRange times.html#NanosecondRange type NanosecondRange 293 nim IsoWeekRange times.html#IsoWeekRange type IsoWeekRange 295 nim IsoYear times.html#IsoYear type IsoYear 297 nim Time times.html#Time object Time 302 nim DateTime times.html#DateTime object DateTime 306 nim Duration times.html#Duration object Duration 324 nim Nanoseconds times.html#Nanoseconds TimeUnit.Nanoseconds 335 nim Microseconds times.html#Microseconds TimeUnit.Microseconds 335 nim Milliseconds times.html#Milliseconds TimeUnit.Milliseconds 335 nim Seconds times.html#Seconds TimeUnit.Seconds 335 nim Minutes times.html#Minutes TimeUnit.Minutes 335 nim Hours times.html#Hours TimeUnit.Hours 335 nim Days times.html#Days TimeUnit.Days 335 nim Weeks times.html#Weeks TimeUnit.Weeks 335 nim Months times.html#Months TimeUnit.Months 335 nim Years times.html#Years TimeUnit.Years 335 nim TimeUnit times.html#TimeUnit enum TimeUnit 335 nim FixedTimeUnit times.html#FixedTimeUnit type FixedTimeUnit 339 nim TimeInterval times.html#TimeInterval object TimeInterval 343 nim Timezone times.html#Timezone type Timezone 370 nim ZonedTime times.html#ZonedTime object ZonedTime 380 nim DurationParts times.html#DurationParts type DurationParts 388 nim TimeIntervalParts times.html#TimeIntervalParts type TimeIntervalParts 389 nim convert times.html#convert,FixedTimeUnit,FixedTimeUnit,T proc convert[T: SomeInteger](unitFrom, unitTo: FixedTimeUnit; quantity: T): T 427 nim isLeapYear times.html#isLeapYear,int proc isLeapYear(year: int): bool 451 nim getDaysInMonth times.html#getDaysInMonth,Month,int proc getDaysInMonth(month: Month; year: int): int 458 nim getDayOfYear times.html#getDayOfYear,MonthdayRange,Month,int proc getDayOfYear(monthday: MonthdayRange; month: Month; year: int): YeardayRange 509 nim getDayOfWeek times.html#getDayOfWeek,MonthdayRange,Month,int proc getDayOfWeek(monthday: MonthdayRange; month: Month; year: int): WeekDay 529 nim getDaysInYear times.html#getDaysInYear,int proc getDaysInYear(year: int): int 546 nim `==` times.html#==,IsoYear,IsoYear proc `==`(a, b: IsoYear): bool 553 nim `$` times.html#$,IsoYear proc `$`(p: IsoYear): string 554 nim getWeeksInIsoYear times.html#getWeeksInIsoYear,IsoYear proc getWeeksInIsoYear(y: IsoYear): IsoWeekRange 556 nim getIsoWeekAndYear times.html#getIsoWeekAndYear,DateTime proc getIsoWeekAndYear(dt: DateTime): tuple[isoweek: IsoWeekRange = 1,\n isoyear: IsoYear] 574 nim DurationZero times.html#DurationZero const DurationZero 647 nim initDuration times.html#initDuration,int64,int64,int64,int64,int64,int64,int64,int64 proc initDuration(nanoseconds, microseconds, milliseconds, seconds, minutes, hours,\n days, weeks: int64 = 0): Duration 655 nim inWeeks times.html#inWeeks,Duration proc inWeeks(dur: Duration): int64 696 nim inDays times.html#inDays,Duration proc inDays(dur: Duration): int64 703 nim inHours times.html#inHours,Duration proc inHours(dur: Duration): int64 710 nim inMinutes times.html#inMinutes,Duration proc inMinutes(dur: Duration): int64 717 nim inSeconds times.html#inSeconds,Duration proc inSeconds(dur: Duration): int64 724 nim inMilliseconds times.html#inMilliseconds,Duration proc inMilliseconds(dur: Duration): int64 731 nim inMicroseconds times.html#inMicroseconds,Duration proc inMicroseconds(dur: Duration): int64 738 nim inNanoseconds times.html#inNanoseconds,Duration proc inNanoseconds(dur: Duration): int64 745 nim toParts times.html#toParts,Duration proc toParts(dur: Duration): DurationParts 752 nim `$` times.html#$,Duration proc `$`(dur: Duration): string 787 nim `+` times.html#+,Duration,Duration proc `+`(a, b: Duration): Duration 806 nim `-` times.html#-,Duration,Duration proc `-`(a, b: Duration): Duration 813 nim `-` times.html#-,Duration proc `-`(a: Duration): Duration 820 nim `<` times.html#<,Duration,Duration proc `<`(a, b: Duration): bool 826 nim `<=` times.html#<=,Duration,Duration proc `<=`(a, b: Duration): bool 838 nim `==` times.html#==,Duration,Duration proc `==`(a, b: Duration): bool 841 nim `*` times.html#*,int64,Duration proc `*`(a: int64; b: Duration): Duration 849 nim `*` times.html#*,Duration,int64 proc `*`(a: Duration; b: int64): Duration 857 nim `+=` times.html#+=,Duration,Duration proc `+=`(d1: var Duration; d2: Duration) 865 nim `-=` times.html#-=,Duration,Duration proc `-=`(dt: var Duration; ti: Duration) 868 nim `*=` times.html#*=,Duration,int proc `*=`(a: var Duration; b: int) 871 nim `div` times.html#div,Duration,int64 proc `div`(a: Duration; b: int64): Duration 874 nim high times.html#high,typedesc[Duration] proc high(typ: typedesc[Duration]): Duration 887 nim low times.html#low,typedesc[Duration] proc low(typ: typedesc[Duration]): Duration 891 nim abs times.html#abs,Duration proc abs(a: Duration): Duration 895 nim initTime times.html#initTime,int64,NanosecondRange proc initTime(unix: int64; nanosecond: NanosecondRange): Time 905 nim nanosecond times.html#nanosecond,Time proc nanosecond(time: Time): NanosecondRange 910 nim fromUnix times.html#fromUnix,int64 proc fromUnix(unix: int64): Time 915 nim toUnix times.html#toUnix,Time proc toUnix(t: Time): int64 923 nim fromUnixFloat times.html#fromUnixFloat,float proc fromUnixFloat(seconds: float): Time 930 nim toUnixFloat times.html#toUnixFloat,Time proc toUnixFloat(t: Time): float 940 nim fromWinTime times.html#fromWinTime,int64 proc fromWinTime(win: int64): Time 953 nim toWinTime times.html#toWinTime,Time proc toWinTime(t: Time): int64 961 nim getTime times.html#getTime proc getTime(): Time 969 nim `-` times.html#-,Time,Time proc `-`(a, b: Time): Duration 994 nim `+` times.html#+,Time,Duration proc `+`(a: Time; b: Duration): Time 1001 nim `-` times.html#-,Time,Duration proc `-`(a: Time; b: Duration): Time 1007 nim `<` times.html#<,Time,Time proc `<`(a, b: Time): bool 1013 nim `<=` times.html#<=,Time,Time proc `<=`(a, b: Time): bool 1019 nim `==` times.html#==,Time,Time proc `==`(a, b: Time): bool 1023 nim `+=` times.html#+=,Time,Duration proc `+=`(t: var Time; b: Duration) 1027 nim `-=` times.html#-=,Time,Duration proc `-=`(t: var Time; b: Duration) 1030 nim high times.html#high,typedesc[Time] proc high(typ: typedesc[Time]): Time 1033 nim low times.html#low,typedesc[Time] proc low(typ: typedesc[Time]): Time 1036 nim nanosecond times.html#nanosecond,DateTime proc nanosecond(dt: DateTime): NanosecondRange 1046 nim second times.html#second,DateTime proc second(dt: DateTime): SecondRange 1052 nim minute times.html#minute,DateTime proc minute(dt: DateTime): MinuteRange 1058 nim hour times.html#hour,DateTime proc hour(dt: DateTime): HourRange 1064 nim monthday times.html#monthday,DateTime proc monthday(dt: DateTime): MonthdayRange 1070 nim month times.html#month,DateTime proc month(dt: DateTime): Month 1076 nim year times.html#year,DateTime proc year(dt: DateTime): int 1083 nim weekday times.html#weekday,DateTime proc weekday(dt: DateTime): WeekDay 1090 nim yearday times.html#yearday,DateTime proc yearday(dt: DateTime): YeardayRange 1096 nim isDst times.html#isDst,DateTime proc isDst(dt: DateTime): bool 1102 nim timezone times.html#timezone,DateTime proc timezone(dt: DateTime): Timezone 1108 nim utcOffset times.html#utcOffset,DateTime proc utcOffset(dt: DateTime): int 1114 nim isInitialized times.html#isInitialized,DateTime proc isInitialized(dt: DateTime): bool 1124 nim isLeapDay times.html#isLeapDay,DateTime proc isLeapDay(dt: DateTime): bool 1134 nim toTime times.html#toTime,DateTime proc toTime(dt: DateTime): Time 1148 nim newTimezone times.html#newTimezone,string,proc(Time),proc(Time) proc newTimezone(name: string; zonedTimeFromTimeImpl: proc (time: Time): ZonedTime {.\n tags: [], raises: [], gcsafe.}; zonedTimeFromAdjTimeImpl: proc (\n adjTime: Time): ZonedTime {.tags: [], raises: [], gcsafe.}): owned Timezone 1188 nim name times.html#name,Timezone proc name(zone: Timezone): string 1216 nim zonedTimeFromTime times.html#zonedTimeFromTime,Timezone,Time proc zonedTimeFromTime(zone: Timezone; time: Time): ZonedTime 1228 nim zonedTimeFromAdjTime times.html#zonedTimeFromAdjTime,Timezone,Time proc zonedTimeFromAdjTime(zone: Timezone; adjTime: Time): ZonedTime 1232 nim `$` times.html#$,Timezone proc `$`(zone: Timezone): string 1240 nim `==` times.html#==,Timezone,Timezone proc `==`(zone1, zone2: Timezone): bool 1244 nim inZone times.html#inZone,Time,Timezone proc inZone(time: Time; zone: Timezone): DateTime 1255 nim inZone times.html#inZone,DateTime,Timezone proc inZone(dt: DateTime; zone: Timezone): DateTime 1260 nim utc times.html#utc proc utc(): Timezone 1368 nim local times.html#local proc local(): Timezone 1377 nim utc times.html#utc,DateTime proc utc(dt: DateTime): DateTime 1387 nim local times.html#local,DateTime proc local(dt: DateTime): DateTime 1391 nim utc times.html#utc,Time proc utc(t: Time): DateTime 1395 nim local times.html#local,Time proc local(t: Time): DateTime 1399 nim now times.html#now proc now(): DateTime 1403 nim dateTime times.html#dateTime,int,Month,MonthdayRange,HourRange,MinuteRange,SecondRange,NanosecondRange,Timezone proc dateTime(year: int; month: Month; monthday: MonthdayRange; hour: HourRange = 0;\n minute: MinuteRange = 0; second: SecondRange = 0;\n nanosecond: NanosecondRange = 0; zone: Timezone = local()): DateTime 1411 nim initDateTime times.html#initDateTime,MonthdayRange,Month,int,HourRange,MinuteRange,SecondRange,NanosecondRange,Timezone proc initDateTime(monthday: MonthdayRange; month: Month; year: int; hour: HourRange;\n minute: MinuteRange; second: SecondRange;\n nanosecond: NanosecondRange; zone: Timezone = local()): DateTime 1431 nim initDateTime times.html#initDateTime,MonthdayRange,Month,int,HourRange,MinuteRange,SecondRange,Timezone proc initDateTime(monthday: MonthdayRange; month: Month; year: int; hour: HourRange;\n minute: MinuteRange; second: SecondRange; zone: Timezone = local()): DateTime 1440 nim `+` times.html#+,DateTime,Duration proc `+`(dt: DateTime; dur: Duration): DateTime 1448 nim `-` times.html#-,DateTime,Duration proc `-`(dt: DateTime; dur: Duration): DateTime 1456 nim `-` times.html#-,DateTime,DateTime proc `-`(dt1, dt2: DateTime): Duration 1464 nim `<` times.html#<,DateTime,DateTime proc `<`(a, b: DateTime): bool 1474 nim `<=` times.html#<=,DateTime,DateTime proc `<=`(a, b: DateTime): bool 1478 nim `==` times.html#==,DateTime,DateTime proc `==`(a, b: DateTime): bool 1482 nim `+=` times.html#+=,DateTime,Duration proc `+=`(a: var DateTime; b: Duration) 1488 nim `-=` times.html#-=,DateTime,Duration proc `-=`(a: var DateTime; b: Duration) 1491 nim getDateStr times.html#getDateStr proc getDateStr(dt = now()): string 1494 nim getClockStr times.html#getClockStr proc getClockStr(dt = now()): string 1502 nim DateTimeLocale times.html#DateTimeLocale object DateTimeLocale 1518 nim TimeFormat times.html#TimeFormat object TimeFormat 1571 nim TimeParseError times.html#TimeParseError object TimeParseError 1584 nim TimeFormatParseError times.html#TimeFormatParseError object TimeFormatParseError 1587 nim DefaultLocale times.html#DefaultLocale const DefaultLocale 1591 nim `$` times.html#$,TimeFormat proc `$`(f: TimeFormat): string 1603 nim initTimeFormat times.html#initTimeFormat,string proc initTimeFormat(format: string): TimeFormat 1723 nim format times.html#format,DateTime,TimeFormat,DateTimeLocale proc format(dt: DateTime; f: TimeFormat; loc: DateTimeLocale = DefaultLocale): string 2082 nim format times.html#format,DateTime,string,DateTimeLocale proc format(dt: DateTime; f: string; loc: DateTimeLocale = DefaultLocale): string 2105 nim format times.html#format,DateTime,static[string] proc format(dt: DateTime; f: static[string]): string 2117 nim formatValue times.html#formatValue,string,,string proc formatValue(result: var string; value: DateTime | Time; specifier: string) 2122 nim format times.html#format,Time,string,Timezone proc format(time: Time; f: string; zone: Timezone = local()): string 2127 nim format times.html#format,Time,static[string],Timezone proc format(time: Time; f: static[string]; zone: Timezone = local()): string 2140 nim parse times.html#parse,string,TimeFormat,Timezone,DateTimeLocale proc parse(input: string; f: TimeFormat; zone: Timezone = local();\n loc: DateTimeLocale = DefaultLocale): DateTime 2146 nim parse times.html#parse,string,string,Timezone,DateTimeLocale proc parse(input, f: string; tz: Timezone = local();\n loc: DateTimeLocale = DefaultLocale): DateTime 2189 nim parse times.html#parse,string,static[string],Timezone,DateTimeLocale proc parse(input: string; f: static[string]; zone: Timezone = local();\n loc: DateTimeLocale = DefaultLocale): DateTime 2202 nim parseTime times.html#parseTime,string,string,Timezone proc parseTime(input, f: string; zone: Timezone): Time 2208 nim parseTime times.html#parseTime,string,static[string],Timezone proc parseTime(input: string; f: static[string]; zone: Timezone): Time 2219 nim `$` times.html#$,DateTime proc `$`(dt: DateTime): string 2225 nim `$` times.html#$,Time proc `$`(time: Time): string 2237 nim initTimeInterval times.html#initTimeInterval,int,int,int,int,int,int,int,int,int,int proc initTimeInterval(nanoseconds, microseconds, milliseconds, seconds, minutes,\n hours, days, weeks, months, years: int = 0): TimeInterval 2250 nim `+` times.html#+,TimeInterval,TimeInterval proc `+`(ti1, ti2: TimeInterval): TimeInterval 2277 nim `-` times.html#-,TimeInterval proc `-`(ti: TimeInterval): TimeInterval 2290 nim `-` times.html#-,TimeInterval,TimeInterval proc `-`(ti1, ti2: TimeInterval): TimeInterval 2309 nim `+=` times.html#+=,TimeInterval,TimeInterval proc `+=`(a: var TimeInterval; b: TimeInterval) 2320 nim `-=` times.html#-=,TimeInterval,TimeInterval proc `-=`(a: var TimeInterval; b: TimeInterval) 2323 nim between times.html#between,DateTime,DateTime proc between(startDt, endDt: DateTime): TimeInterval 2339 nim toParts times.html#toParts,TimeInterval proc toParts(ti: TimeInterval): TimeIntervalParts 2444 nim `$` times.html#$,TimeInterval proc `$`(ti: TimeInterval): string 2460 nim nanoseconds times.html#nanoseconds,int proc nanoseconds(nanos: int): TimeInterval 2475 nim microseconds times.html#microseconds,int proc microseconds(micros: int): TimeInterval 2479 nim milliseconds times.html#milliseconds,int proc milliseconds(ms: int): TimeInterval 2483 nim seconds times.html#seconds,int proc seconds(s: int): TimeInterval 2487 nim minutes times.html#minutes,int proc minutes(m: int): TimeInterval 2493 nim hours times.html#hours,int proc hours(h: int): TimeInterval 2499 nim days times.html#days,int proc days(d: int): TimeInterval 2505 nim weeks times.html#weeks,int proc weeks(w: int): TimeInterval 2511 nim months times.html#months,int proc months(m: int): TimeInterval 2517 nim years times.html#years,int proc years(y: int): TimeInterval 2523 nim `+` times.html#+,DateTime,TimeInterval proc `+`(dt: DateTime; interval: TimeInterval): DateTime 2570 nim `-` times.html#-,DateTime,TimeInterval proc `-`(dt: DateTime; interval: TimeInterval): DateTime 2599 nim `+` times.html#+,Time,TimeInterval proc `+`(time: Time; interval: TimeInterval): Time 2610 nim `-` times.html#-,Time,TimeInterval proc `-`(time: Time; interval: TimeInterval): Time 2623 nim `+=` times.html#+=,DateTime,TimeInterval proc `+=`(a: var DateTime; b: TimeInterval) 2636 nim `-=` times.html#-=,DateTime,TimeInterval proc `-=`(a: var DateTime; b: TimeInterval) 2639 nim `+=` times.html#+=,Time,TimeInterval proc `+=`(t: var Time; b: TimeInterval) 2642 nim `-=` times.html#-=,Time,TimeInterval proc `-=`(t: var Time; b: TimeInterval) 2645 nim initDateTime times.html#initDateTime,WeekDay,IsoWeekRange,IsoYear,HourRange,MinuteRange,SecondRange,NanosecondRange,Timezone proc initDateTime(weekday: WeekDay; isoweek: IsoWeekRange; isoyear: IsoYear;\n hour: HourRange; minute: MinuteRange; second: SecondRange;\n nanosecond: NanosecondRange; zone: Timezone = local()): DateTime 2652 nim initDateTime times.html#initDateTime,WeekDay,IsoWeekRange,IsoYear,HourRange,MinuteRange,SecondRange,Timezone proc initDateTime(weekday: WeekDay; isoweek: IsoWeekRange; isoyear: IsoYear;\n hour: HourRange; minute: MinuteRange; second: SecondRange;\n zone: Timezone = local()): DateTime 2670 nim epochTime times.html#epochTime proc epochTime(): float 2679 nim cpuTime times.html#cpuTime proc cpuTime(): float 2720 nim nanosecond= times.html#nanosecond=,DateTime,NanosecondRange proc nanosecond=(dt: var DateTime; value: NanosecondRange) 2752 nim second= times.html#second=,DateTime,SecondRange proc second=(dt: var DateTime; value: SecondRange) 2755 nim minute= times.html#minute=,DateTime,MinuteRange proc minute=(dt: var DateTime; value: MinuteRange) 2758 nim hour= times.html#hour=,DateTime,HourRange proc hour=(dt: var DateTime; value: HourRange) 2761 nim monthdayZero= times.html#monthdayZero=,DateTime,int proc monthdayZero=(dt: var DateTime; value: int) 2764 nim monthZero= times.html#monthZero=,DateTime,int proc monthZero=(dt: var DateTime; value: int) 2767 nim year= times.html#year=,DateTime,int proc year=(dt: var DateTime; value: int) 2770 nim weekday= times.html#weekday=,DateTime,WeekDay proc weekday=(dt: var DateTime; value: WeekDay) 2773 nim yearday= times.html#yearday=,DateTime,YeardayRange proc yearday=(dt: var DateTime; value: YeardayRange) 2776 nim isDst= times.html#isDst=,DateTime,bool proc isDst=(dt: var DateTime; value: bool) 2779 nim timezone= times.html#timezone=,DateTime,Timezone proc timezone=(dt: var DateTime; value: Timezone) 2782 nim utcOffset= times.html#utcOffset=,DateTime,int proc utcOffset=(dt: var DateTime; value: int) 2785 heading Examples times.html#examples Examples 0 heading Parsing and Formatting Dates times.html#parsing-and-formatting-dates Parsing and Formatting Dates 0 heading Duration vs TimeInterval times.html#duration-vs-timeinterval Duration vs TimeInterval 0 heading Duration times.html#duration-vs-timeinterval-duration Duration 0 heading TimeInterval times.html#duration-vs-timeinterval-timeinterval TimeInterval 0 heading How long is a day? times.html#duration-vs-timeinterval-how-long-is-a-dayqmark How long is a day? 0 heading See also times.html#see-also See also 0 nimgrp += times.html#+=-procs-all proc 865 nimgrp low times.html#low-procs-all proc 891 nimgrp * times.html#*-procs-all proc 849 nimgrp - times.html#--procs-all proc 813 nimgrp -= times.html#-=-procs-all proc 868 nimgrp parsetime times.html#parseTime-procs-all proc 2208 nimgrp + times.html#+-procs-all proc 806 nimgrp <= times.html#<=-procs-all proc 838 nimgrp inzone times.html#inZone-procs-all proc 1255 nimgrp format times.html#format-procs-all proc 2082 nimgrp utc times.html#utc-procs-all proc 1368 nimgrp initdatetime times.html#initDateTime-procs-all proc 1431 nimgrp $ times.html#$-procs-all proc 554 nimgrp high times.html#high-procs-all proc 887 nimgrp < times.html#<-procs-all proc 826 nimgrp local times.html#local-procs-all proc 1377 nimgrp toparts times.html#toParts-procs-all proc 752 nimgrp nanosecond times.html#nanosecond-procs-all proc 910 nimgrp == times.html#==-procs-all proc 553 nimgrp parse times.html#parse-procs-all proc 2146