Add property setting to chain
closescreen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jul 15 13:29:22 PDT 2017
I found this solution:
Clock.currTime.to!DateTime.pipe!( dt=>(dt.minute=0,dt.second=0,
dt) ).Interval!DateTime( 24.hours ).fwdRange( h=>h+1.hours
).writeln;
Or:
Clock.currTime.to!DateTime.pipe!( "a.minute=0, a.second=0, a"
).Interval!DateTime( 24.hours ).fwdRange( h=>h+1.hours ).writeln;
Is this code looks good, idiomatic?
More information about the Digitalmars-d-learn
mailing list