Пример #1
0
 public CogsDate(DateTimeOffset item, bool isDate = false)
 {
     if (isDate)
     {
         Date     = item;
         UsedType = CogsDateType.Date;
     }
     else
     {
         DateTime = item;
         UsedType = CogsDateType.DateTime;
     }
 }
Пример #2
0
 public CogsDate(TimeSpan item)
 {
     Duration = item;
     UsedType = CogsDateType.Duration;
 }
Пример #3
0
 public CogsDate(GYear item)
 {
     GYear    = item;
     UsedType = CogsDateType.GYear;
 }
Пример #4
0
 public CogsDate(GYearMonth item)
 {
     GYearMonth = item;
     UsedType   = CogsDateType.GYearMonth;
 }