http://d.puremagic.com/issues/show_bug.cgi?id=11353
Summary: core.time.Duration is missing to() conversion function Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2013-10-25 10:39:40 PDT --- You can use to!() on a TickDuration but not on a Duration: ----- import core.time; import std.stdio; void main() { auto tickDur = cast(TickDuration)50.msecs; // 0.0499997 writeln(tickDur.to!("seconds", float)); // Error: no property 'to' for type 'Duration' writeln(50.msecs.to!("seconds", float)); } ----- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------