public void setRefreshTime(long refreshTime) { System.DateTime SDT = new System.DateTime(0); HelpUtil.JsTime2CSharpDateTime(refreshTime, out SDT); mRefreshTime = SDT; string Hour = ""; string Minute = ""; string Second = ""; if (SDT.Hour < 10) { Hour = "0" + SDT.Hour; } else { Hour = SDT.Hour.ToString(); } if (SDT.Minute < 10) { Minute = "0" + SDT.Minute; } else { Minute = SDT.Minute.ToString(); } if (SDT.Second < 10) { Second = "0" + SDT.Second; } else { Second = SDT.Second.ToString(); } RefreshDate.text = SDT.Year + "/" + SDT.Month + "/" + SDT.Day; RefreshTime.text = Hour + ":" + Minute + ":" + Second; }
public void setRefreshTime(long refreshTime) { System.DateTime SDT = new System.DateTime(0); HelpUtil.JsTime2CSharpDateTime(refreshTime, out SDT); mRefreshTime = SDT; }