public static LuaDate CreateDateWithTime(int day, int month, int year, int hour, int minute, int second) { LuaDate ret = new LuaDate(); ret.dateStore = new DateTime(year, month, day, hour, minute, second, DateTimeKind.Local); return(ret); }
public static LuaDate CreateDate(int day, int month, int year) { LuaDate ret = new LuaDate(); ret.dateStore = new DateTime(year, month, day); return(ret); }
public static LuaDate Now() { LuaDate ret = new LuaDate(); ret.dateStore = DateTime.Now; return(ret); }
public void SetTime(LuaDate date) { #if WINDOWS_PHONE if (dialogType == DIALOG_TYPE_TIMEPICKER) { ((TimePicker)(((CustomMessageBox)dialog).Content)).Value = new DateTime(0, 0, 0, date.GetHour(), date.GetMinute(), 0, 0); } #endif }
public void SetDate(LuaDate date) { #if WINDOWS_PHONE if (dialogType == DIALOG_TYPE_DATEPICKER) { ((DatePicker)(((CustomMessageBox)dialog).Content)).Value = new DateTime(date.GetYear(), date.GetMonth(), date.GetDay(), 0, 0, 0, 0); } #endif }