public RptSortiesOverTimePlotModel(DataRow dr)
 {
     X      = DateTimeJavaScript.ToJavaScriptMilliseconds(dr.Field <DateTime>("Date"));
     Y      = dr.Field <int>("Sorties");
     Kills  = dr.Field <int>("Kills");
     Deaths = dr.Field <int>("Deaths");
 }
예제 #2
0
 public void ConvertDateTimeToJSMilliseconds_Success()
 {
     // Date.UTC(2018, 4, 18) = 1526601600000
     // In Date.UTC, month is 0 - 11
     Assert.That(DateTimeJavaScript.ToJavaScriptMilliseconds(new DateTime(2018, 5, 18)) == 1526616000000);
 }
예제 #3
0
 public RptScoreOverTimePlotModel(DataRow dr, string colname)
 {
     Date  = DateTimeJavaScript.ToJavaScriptMilliseconds(dr.Field <DateTime>("Date"));
     Count = dr.Field <int>(colname);
 }