buf.formatTimestampInto
fn
char[] formatTimestampInto(long epochNanos, return char[] buf) @safe pure nothrowFormats a timestamp into buf exactly like Timestamp.toString: YYYY-MM-DDTHH:MM:SS[.f{1,9}]Z, the fraction omitted when zero and trailing zeros trimmed otherwise. Allocation-free; calendar arithmetic is days-from-civil, so pre-1970 epochs need no SysTime.
Parameters
epochNanos | nanoseconds since the Unix epoch |
buf | caller-provided storage (at least 30 bytes) |
Returns
the written slice of