Esempio n. 1
0
 /// <summary>
 /// Is current day a work day<br />
 /// 当前日期是否为工作日
 /// </summary>
 /// <returns></returns>
 public bool IsWorkDay() => InternalDateTime.IsWeekday();
Esempio n. 2
0
 /// <summary>
 /// Is current day weekend<br />
 /// 当天日期是否为周末
 /// </summary>
 /// <returns></returns>
 public bool IsWeekend() => InternalDateTime.IsWeekend();
Esempio n. 3
0
 /// <summary>
 /// Add months<br />
 /// 添加月份
 /// </summary>
 /// <param name="months"></param>
 /// <returns></returns>
 public ChineseDateTime AddMonths(int months)
 {
     return(new(InternalDateTime.AddMonths(months)));
 }
Esempio n. 4
0
 /// <summary>
 /// Add days<br />
 /// 添加若干天
 /// </summary>
 /// <param name="days"></param>
 /// <returns></returns>
 public ChineseDateTime AddDays(int days)
 {
     return(new(InternalDateTime.AddDays(days)));
 }
Esempio n. 5
0
 public ConsultationViewModel()
 {
     ConsultationTime = new InternalDateTime();
 }
Esempio n. 6
0
 public ViewModelBase()
 {
     CreatedOn  = new InternalDateTime();
     ModifiedOn = new InternalDateTime();
 }