Elektrine lite

← Feed

@gim@queer.group

Post #1751228

2026-04-28 17:36 UTC

Example: #let formatDate(s) = toml(bytes("date = " + s)).date.display("[day].[month].[year]") There's no standalone date parser so I have to use an adhoc toml...

Replies (1)

  • @gim@queer.group 2026-04-28 17:38

    Example: #let formatMinutes(d) = [#padInt(calc.floor(d/60), 2):#padInt(calc.rem(d, 60), 2)h] There's a duration type but it has no display function...

    Open ##1751227