Пример #1
0
 public OYSDateTime(IYear YYYY, IMonth MM, IDay DD, IHour hh, IMinute mm, ISecond ss)
 {
     this.Year   = YYYY;
     this.Month  = MM;
     this.Day    = DD;
     this.Hour   = hh;
     this.Minute = mm;
     this.Second = ss;
 }
Пример #2
0
 public OYSTimeSpan(IYear Y, IMonth M, IWeek W, IDay D, IHour h, IMinute m, ISecond s)
 {
     this.Years   = Y;
     this.Months  = M;
     this.Days    = D;
     this.Hours   = h;
     this.Minutes = m;
     this.Seconds = s;
 }
Пример #3
0
 public string GetTime(int iType)
 {
     if (iType == 1)
     {
         return(IHour.ToString() + ":" + IMinute.ToString() + ":" + ISecond.ToString());
     }
     else
     {
         return(IHour.ToString() + ":" + IMinute.ToString());
     }
 }
Пример #4
0
 public static ITimeSpan ToTimeSpan(this IMinute input) => ObjectFactory.CreateTimeSpan(new System.TimeSpan(0, 0, (int)input.RawValue, 0));
Пример #5
0
 public static IDateTime ToDateTime(this IMinute input) => ObjectFactory.CreateDateTime(new System.DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, (int)input.RawValue, 0));
Пример #6
0
 public OYSTime(IHour hh, IMinute mm, ISecond ss)
 {
     this.Hour   = hh;
     this.Minute = mm;
     this.Second = ss;
 }