Documentation

Lake.Toml.Data.DateTime

TOML Date-Time #

Defines data types for representing a TOML date-time. TOML date-times are based on IETF RFC 3339 with some components optionally left out, creating four distinct variants.

def Lake.Toml.lpad (s : String) (c : Char) (len : Nat) :
Equations
def Lake.Toml.rpad (s : String) (c : Char) (len : Nat) :
Equations
def Lake.Toml.zpad (n : Nat) (len : Nat) :
Equations
Equations
@[reducible, inline]
Equations
@[reducible, inline]
Equations
def Lake.Toml.Date.maxDay (y : Nat) (m : Nat) :
Equations
@[reducible, inline]
abbrev Lake.Toml.Date.IsValidDay (y : Nat) (m : Nat) (d : Nat) :
Equations
def Lake.Toml.Date.ofValid? (year : Nat) (month : Nat) (day : Nat) :
Equations
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
structure Lake.Toml.Time :

A TOML time (hour:minute:second.fraction).

We do not represent whole time as seconds to due to the possibility of leap seconds in RFC 3339 times.

Instances For
Equations
  • Lake.Toml.instInhabitedTime = { default := { hour := default, minute := default, second := default, fracExponent := default, fracMantissa := default } }
@[reducible, inline]
Equations
@[reducible, inline]
Equations
@[reducible, inline]
Equations
Equations
def Lake.Toml.Time.ofValid? (hour : Nat) (minute : Nat) (second : Nat) :
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations