Comparison

teal-src/util/datetime.d.tl @ 12634:8cb6644ce463

util.datetime: Update Teal interface description Integers were required before, now any number should work.
author Kim Alvefur <zash@zash.se>
date Wed, 17 Aug 2022 18:41:35 +0200
parent 11459:86904555bffc
comparison
equal deleted inserted replaced
12633:5d8b0e0b9d48 12634:8cb6644ce463
1 -- TODO s/number/integer/ once Teal gets support for that
2
3 local record lib 1 local record lib
4 date : function (t : integer) : string 2 date : function (t : number) : string
5 datetime : function (t : integer) : string 3 datetime : function (t : number) : string
6 time : function (t : integer) : string 4 time : function (t : number) : string
7 legacy : function (t : integer) : string 5 legacy : function (t : number) : string
8 parse : function (t : string) : integer 6 parse : function (t : string) : number
9 end 7 end
10 8
11 return lib 9 return lib