Artifact d72c775fe31afc3e939f34d8b28cabfd3c835b23:
- File th1ish/unit/001-020.th1ish — part of check-in [157b9bed08] at 2014-02-18 21:02:08 on branch trunk — Fixed a couple embarassing Denkfehler in the time() handling. (user: stephan size: 417)
scope { const F = Fossil const T = F.time var nowj = T.now(true); var s = T.julianToHuman( nowj ) assert 19 === s.length() assert 32 === s.byteAt(10) s = T.julianToISO8601( nowj, true ) assert F.globMatches('[0-2][0-1][0-9][0-9]-*', s) assert 23 === s.length() assert 'T' === s.charAt(10) //print(T.now()) //print(T.unixToJulian(T.now())) //print(T.julianToHuman(T.unixToJulian(T.now()))) }