mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* 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
9 lines
239 B
Text
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]);
|
|
|