Time.bend checks
raw source on the hub · import hhefesto-time@1.0.0.0/Time.bend as Time
1 import
import Base
Definitions
def tm.pad2 source · line 16 · raw
@+n:Nat -> String
def tm.civil.m source · line 19 · raw
@+mp:Nat -> Nat
def tm.civil.ymd source · line 22 · raw
@+y:Nat -> @+m:Nat -> @+d:Nat -> String
def tm.civil.mp source · line 25 · raw
@+y:Nat -> @+doy:Nat -> @+mp:Nat -> String
def tm.civil.doy source · line 28 · raw
@+y:Nat -> @+doy:Nat -> String
def tm.civil.yoe source · line 31 · raw
@+era:Nat -> @+doe:Nat -> @+yoe:Nat -> String
def tm.civil.doe source · line 35 · raw
@+era:Nat -> @+doe:Nat -> String
def tm.civil.z source · line 38 · raw
@+z:Nat -> String
def tm.ymd source · line 42 · raw
@+days:Nat -> String
a day (days since 1970-01-01) as YYYY-MM-DD
def tm.days.yoe source · line 45 · raw
@+era:Nat -> @+yoe:Nat -> @+doy:Nat -> Nat
def tm.days.y source · line 48 · raw
@+y:Nat -> @+doy:Nat -> Nat
def tm.days.mp source · line 51 · raw
@+mp:Nat -> @+d:Nat -> Nat
def tm.days source · line 55 · raw
@+y:Nat -> @+m:Nat -> @+d:Nat -> Nat
YYYY-MM-DD as days since 1970-01-01
def tm.digit.at source · line 61 · raw
@ok:Bool -> @+c:U32 -> @+n:Nat -> @more:(@_:Nat -> Maybe<&2, Nat>) -> Maybe<&2, Nat>
def tm.digits.go source · line 69 · raw
@s:String -> @+n:Nat -> Maybe<&2, Nat>
a run of decimal digits' value (None: something else in it)
def tm.num source · line 76 · raw
@+s:String -> Maybe<&2, Nat>
def tm.frac source · line 80 · raw
@+s:String -> Maybe<&2, Nat>
a fraction's digits as milliseconds (the first three)
def tm.part source · line 83 · raw
@+s:String -> @+at:Nat -> @+n:Nat -> Maybe<&2, Nat>
def tm.ns.of source · line 86 · raw
@y:Maybe<&2, Nat> -> @mo:Maybe<&2, Nat> -> @d:Maybe<&2, Nat> -> @h:Maybe<&2, Nat> -> @mi:Maybe<&2, Nat> -> @sec:Maybe<&2, Nat> -> @f:Maybe<&2, Nat> -> Maybe<&2, Nat>
def tm.tail source · line 94 · raw
@+s:String -> Maybe<&2, Nat>
the fraction after the seconds: none, or "." and digits, then "Z"
def tm.iso.read source · line 100 · raw
@+s:String -> Maybe<&2, Nat>
"YYYY-MM-DDTHH:MM:SS[.f]Z" as milliseconds since 1970 (iso8601ParseM, UTC)
def tm.pad.go source · line 104 · raw
@+n:Nat -> @+s:String -> String
def tm.drop0.at source · line 107 · raw
@z:Bool -> @+c:U32 -> @t:String -> @more:(@_:Unit -> String) -> String
def tm.drop0 source · line 114 · raw
@s:String -> String
def tm.trim0 source · line 121 · raw
@s:String -> String
def tm.fraction source · line 124 · raw
@+ns:Nat -> String
def tm.clock source · line 127 · raw
@+secs:Nat -> String
def tm.iso.ns source · line 132 · raw
@+secs:Nat -> @+ns:Nat -> String
seconds since 1970 and nanoseconds after them, as iso8601Show writes a UTCTime (the fraction's trailing zeros dropped)
def tm.iso source · line 136 · raw
@+ms:Nat -> String
milliseconds since 1970, so