Friday, 15 March 2013

Return time interval as a double in C# -



Return time interval as a double in C# -

i new forum , c# programming.working on project have homecoming time interval double after if command statement finished. code snippet below. please tell me doing wrong. it's not returning d;

public double getinterval() { double d; datetime = new datetime(); if (cb5min.checked) { d = ((60 - now.second) * 1000 - now.millisecond); } else if (cb15min.checked) { d= ((900 - now.second) * 1000 - now.millisecond); } homecoming d; }

please @ timespan construction , illustration here

c# time group-by

No comments:

Post a Comment