v0.13.7

SecondsFormatter

object type35 methodsavailable in: camelot

Methods

In the emulator: 35 implemented.

methodwhat it doesstatus
CanApproximateReturns true if the given number of seconds is within an appropriate range for approximated formatting. · warcraft.wiki.gg ↗
(seconds: Seconds): boolean
implemented
CanRoundUpIntervalsReturns true if the formatter can promote values to higher interval bands. · warcraft.wiki.gg ↗
(): boolean
implemented
CanRoundUpLastUnitReturns true if the formatter should round the final unit up rather than down. · warcraft.wiki.gg ↗
(): boolean
implemented
EvaluateDesiredUnitCountReturns the unit count that a given number of seconds will use for formatting. · warcraft.wiki.gg ↗
(seconds: Seconds): number
implemented
EvaluateMaxIntervalReturns the maximum interval band that a given number of seconds will use for formatting. · warcraft.wiki.gg ↗
(seconds: Seconds): SecondsFormatterInterval
implemented
EvaluateMinIntervalReturns the minimum interval band that a given number of seconds will use for formatting. · warcraft.wiki.gg ↗
(seconds: Seconds): SecondsFormatterInterval
implemented
FormatFormats a number of seconds and returns the resulting string. · warcraft.wiki.gg ↗
(seconds: Seconds, abbreviation: SecondsFormatterAbbreviation?): string
implemented
FormatZeroReturns formatted string representing a zero second duration. · warcraft.wiki.gg ↗
(abbreviation: SecondsFormatterAbbreviation?): string
implemented
GetApproximationSecondsReturns the threshold below which numeric values are formatted as approximated strings. · warcraft.wiki.gg ↗
(): Seconds
implemented
GetConvertToLowerReturns true if the formatter should lowercase all unit format strings. · warcraft.wiki.gg ↗
(): boolean
implemented
GetDefaultAbbreviationReturns the default abbreviation mode used for formatting. · warcraft.wiki.gg ↗
(): SecondsFormatterAbbreviation?
implemented
GetDesiredUnitCountReturns the desired unit count for formatting. · warcraft.wiki.gg ↗
(): number?
implemented
GetDesiredUnitCountCurveReturns the desired unit count curve for formatting. · warcraft.wiki.gg ↗
(): LuaCurveObject?
implemented
GetMaxIntervalReturns the maximum interval band permitted for formatting. · warcraft.wiki.gg ↗
(): SecondsFormatterInterval?
implemented
GetMaxIntervalCurveReturns the maximum interval band curve permitted for formatting. · warcraft.wiki.gg ↗
(): LuaCurveObject?
implemented
GetMillisecondsThresholdReturns the threshold below which a value will be formatted as a decimal number of seconds with one place for milliseconds (eg. '3.4') · warcraft.wiki.gg ↗
(): Seconds
implemented
GetMinIntervalReturns the minimum interval band permitted for formatting. · warcraft.wiki.gg ↗
(): SecondsFormatterInterval?
implemented
GetMinIntervalCurveReturns the minimum interval band curve permitted for formatting. · warcraft.wiki.gg ↗
(): LuaCurveObject?
implemented
GetRoundingReturns how fractional seconds are rounded when not displaying milliseconds. · warcraft.wiki.gg ↗
(): SecondsFormatterRounding
implemented
GetStripIntervalWhitespaceReturns the whitespace stripping mode of the formatter. · warcraft.wiki.gg ↗
(): SecondsFormatterIntervalWhitespace
implemented
ResetResets all stored configuration of the formatter. · warcraft.wiki.gg ↗
()
implemented
SetApproximationSecondsConfigures the formatter to render numeric values between zero and this value as approximated strings (eg. '< 1m'). · warcraft.wiki.gg ↗
(seconds: Seconds)
implemented
SetCanRoundUpIntervalsConfigures the formatter to promote intervals if values are large enough (eg. '60m' -> '1h'). · warcraft.wiki.gg ↗
(canRound: boolean)
implemented
SetCanRoundUpLastUnitConfigures the formatter to round the last formatted unit up, rather than down. · warcraft.wiki.gg ↗
(canRound: boolean)
implemented
SetConvertToLowerConfigures the formatter to convert all interval format strings to lowercase. · warcraft.wiki.gg ↗
(convert: boolean)
implemented
SetDefaultAbbreviationSets the default abbreviation mode used for formatting. · warcraft.wiki.gg ↗
(abbreviation: SecondsFormatterAbbreviation)
implemented
SetDesiredUnitCountSets the desired unit count used for formatting. · warcraft.wiki.gg ↗
(count: number)
implemented
SetDesiredUnitCountCurveSets the desired unit count used for formatting to a curve that will be evaluated with seconds values to produce a desired unit count. · warcraft.wiki.gg ↗
(curve: LuaCurveObject)
implemented
SetMaxIntervalSets the maximum interval band used for formatting. · warcraft.wiki.gg ↗
(interval: SecondsFormatterInterval)
implemented
SetMaxIntervalCurveSets the maximum interval band used for formatting to a curve that will be evaluated with seconds values to produce a value matching a SecondsFormatterInterval enum member. · warcraft.wiki.gg ↗
(curve: LuaCurveObject)
implemented
SetMillisecondsThresholdSets the threshold below which a value will be formatted as a decimal number of seconds with one place for milliseconds (eg. '3.4') · warcraft.wiki.gg ↗
(threshold: Seconds)
implemented
SetMinIntervalSets the minimum interval band used for formatting. · warcraft.wiki.gg ↗
(interval: SecondsFormatterInterval)
implemented
SetMinIntervalCurveSets the minimum interval band used for formatting to a curve that will be evaluated with seconds values to produce a value matching a SecondsFormatterInterval enum member. · warcraft.wiki.gg ↗
(curve: LuaCurveObject)
implemented
SetRoundingSets how fractional seconds are rounded when not displaying milliseconds. · warcraft.wiki.gg ↗
(rounding: SecondsFormatterRounding)
implemented
SetStripIntervalWhitespaceSets the whitespace stripping mode for the formatter. · warcraft.wiki.gg ↗
(strip: SecondsFormatterIntervalWhitespace)
implemented

sources

Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗.