public KyOperation(double tempValue, bool isHumidity) { this.tempValue = tempValue; this.isHumidity = isHumidity; isOpened = true; dateTime = DateTime.Now; }
//读字段信息 public override void readFields(BmobInput input) { base.readFields(input); tempValue = input.getDouble("tempValue"); isHumidity = input.getBoolean("isHumidity"); isOpened = input.getBoolean("isOpened"); isAuto = input.getBoolean("isAuto"); dateTime = input.getDate("dateTime"); }
public override void readFields(BmobInput input) { base.readFields(input); TechniqueID = input.getString("TechniqueID"); Name = input.getString("Name"); Description = input.getString("Description"); CreateDate = input.getDate("CreateDate"); FinishDate = input.getDate("FinishDate"); }
public IList <TB_TechniqueLog> FindLogBetweenDate(DateTime start, DateTime end) { BmobDate st = start; BmobDate ed = end; BmobQuery query = new BmobQuery(); query.WhereGreaterThanOrEqualTo("Date", st); query.WhereLessThanOrEqualTo("Date", ed); return(FindByQuery(query)); }
public static bool IsInvailDate(BmobDate date) { if (date == null) { return(true); } else { DateTime now = DateTime.Parse(date.iso); DateTime rule = DateTime.Parse(InvailDate.iso); return(now.CompareTo(rule) >= 0); } }
public void BmobDateTest() { BmobDate d = DateTime.Now; Console.WriteLine(d); }
public static string FormatBombDateTime(BmobDate date) { return(DateTime.Parse(date.iso).ToString("yyyy-MM-dd hh:mm:ss")); }