Freckle


Time

Namespace: Freckle

Time is the meassurement used for all FRP reasoning

Record Fields

Record FieldDescription
Ticks
Signature: Ticks

Time is meassured in ticks a which is a dotNet concept 1 tick = 10μs

Static members

Static memberDescription
( - )(t1, t2)
Signature: (t1:Time * t2:Time) -> Time

CompiledName: op_Subtraction

( + )(t1, t2)
Signature: (t1:Time * t2:Time) -> Time

CompiledName: op_Addition

between(a b)
Signature: a:Time -> b:Time -> Time

Gets the time between two times. This is not the same as (-) as this operation is cumulative

maxValue
Signature: Time

The max time, tied to DateTime and is the year 9999.

CompiledName: get_maxValue

ofDateTime(d)
Signature: d:DateTime -> Time

Converts DateTime to Time

ofDays(days)
Signature: days:int32 -> Time

From days get a time

ofHours(hour)
Signature: hour:int32 -> Time

From hours get a time

ofMicroseconds(microSec)
Signature: microSec:int32 -> Time

From microseconds get a time

ofMilliseconds(ms)
Signature: ms:int32 -> Time

From milliseconds get a time

ofMinutes(min)
Signature: min:int32 -> Time

From minutes get a time

ofSeconds(sec)
Signature: sec:int32 -> Time

From seconds get a time

origin
Signature: Time

Creates an epoch time

CompiledName: get_origin

ticks(t)
Signature: t:Time -> Ticks

Get the current tick count

time(t)
Signature: t:Ticks -> Time

Creates a time

toDateTime(t)
Signature: t:Time -> DateTime

Converts time to dotNet's DateTime

Fork me on GitHub