casting SysTime to ubyte[]

Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 12 05:59:27 PST 2015


import std.datetime;
import std.stdio;
import std.conv;

void main(string[] arg)
{
	auto a=Clock.currTime();
	auto b=cast(ubyte[])a;
	writefln("%s",b);
}

how do i get the time as a binary representation I can write to a 
file?

Thanks.


More information about the Digitalmars-d-learn mailing list