Software /
code /
prosody
File
teal-src/util/datetime.d.tl @ 11456:4e376a43fe40
util.datamapper: Factor out common schema unpacking
This code extracts the bits from the schema that determines how the data
is to be mapped to/from XML.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 14 Mar 2021 16:50:49 +0100 |
parent | 11432:113f3912c7cb |
child | 11459:86904555bffc |
line wrap: on
line source
-- TODO s/number/integer/ once Teal gets support for that local record lib date : function (t : number) : string datetime : function (t : number) : string time : function (t : number) : string legacy : function (t : number) : string parse : function (t : string) : number end return lib