Timestamp.this

Examples

import mir.date : Date;
auto dt = Date(1982, 4, 1);
Timestamp ts = dt;
assert(ts.opCmp(ts) == 0);
assert(dt.toISOExtString == ts.toString);
assert(dt == cast(Date) ts);
import std.datetime.date : Date;
auto dt = Date(1982, 4, 1);
Timestamp ts = dt;
assert(dt.toISOExtString == ts.toString);
assert(dt == cast(Date) ts);

Meta