xxxxxxxxxx
import std;
struct PrettyDateTime
{
SysTime time;
alias time this;
void toString(scope void delegate(const(char)[]) sink,
FormatSpec!char fmt) const
{
time.toISOExtString(sink);
}
string toString() const
{
return "non output range version";
}
}
void main()
{
PrettyDateTime foo;
foo.time = SysTime.fromISOExtString("2019-07-09T10:30:00Z");
foo.writeln;
}