seconds including fraction used scientific notation if less then 1e-4

This commit is contained in:
Jason Fertel
2015-11-05 14:31:59 -05:00
parent 80f95ab664
commit d74a483ee4
2 changed files with 5 additions and 2 deletions

View File

@@ -180,6 +180,9 @@ describe("Testing the 'date' module", function()
assert(d:fmt('%T') == d:fmt("%H:%M:%S")) -- 24-hour time, from 00:00:00 (06:55:15)
assert(d:fmt('%a %A %b %B') == "Tue Tuesday Oct October")
assert(d:fmt('%C %d') == "15 05", d:fmt('%C %d'))
local d2 = date(1446747300.00008)
assert.is.equals(d2:fmt('%\f'),"00.000080109")
end)
it("Tests 'getclockhour()'", function()