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; }
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; }
public string GetTime(int iType) { if (iType == 1) { return(IHour.ToString() + ":" + IMinute.ToString() + ":" + ISecond.ToString()); } else { return(IHour.ToString() + ":" + IMinute.ToString()); } }
public static ITimeSpan ToTimeSpan(this IMinute input) => ObjectFactory.CreateTimeSpan(new System.TimeSpan(0, 0, (int)input.RawValue, 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));
public OYSTime(IHour hh, IMinute mm, ISecond ss) { this.Hour = hh; this.Minute = mm; this.Second = ss; }