polserver/testsuite/escript/utilmod/strftime.src
turleypol 8ba2639669
Strftime (#345)
* updated strformattime to allow c++11 specifiers, removed 100 chr
limitation

* ambiguous std::max on windows

* fixed utc dependent testdata

* print output file on runecl error

* vs2019 seems to not support E and 0 formats

* use vector of chars as buffer to avoid potential UB

* resize vector, extended test
2020-11-06 21:57:50 +01:00

9 lines
239 B
Text

use util;
print(strformattime("%"));
print(strformattime("%-"));
print(typeof(strformattime("%Y",1)));
print(strformattime("ancient %S time",1));
var v:=strformattime("reserve buffer %T%T%T%T%T%T",1);
print(len(v));
print(v[len(v)-4,5]);