Time
Index
Bound
readonlymaxValue
Maximum value for this type
readonlyminValue
Minimum value for this type
Codec
codecDecode
Returns the decoded
input
,Result.Ok
orResult.Error()
codecEncode
Returns the encoded
input
codecSchema
Returns the JSONSchema corresponding to the decoded type
Comparator
!=
"Not equal to" operator
<
"Less than" operator
<=
"Less than or equal to" operator
==
"Equal to" operator
>
"Greater than" operator
>=
"Greater than or equal to" operator
clamp
Clamp value between minValue and maxValue
compare
Return a number that represents comparison
equals
Alias to '=='
max
"maximum" operator
min
"minimum" operator
Constructor
asInstance
Try to convert anyValue to enum value or else returns
Option.None
of
Create a new Time value
Type
inspect
When defined, returns a custom string representation
hasInstance
Return
true
if the given value is an instance of the class.
Other
typeName
__call__
Converts a number or a TimeObject to a Time
add
Adds
duration
totime
delay
Return a new
Task
that resolves the current time in milliseconds after waitingduration
.
diff
Return the difference between 2 time values
format
Return an ISO 8601 string representation
from
Converts a number or a TimeObject to a Time
now
A task that resolves the current time in milliseconds.
parse
Parse an ISO 8601 string. If invalid, returns
Option.None
unwrap
Convert a tagged value to the underlying type
wrap
Convert an underlying type to a tagged type
A collection of functions to manipulate time (i.e timestamp)