Fan.Sys.Time.Time C# (CSharp) Method

Time() private method

private Time ( int hour, int min, int sec, int ns ) : System.Globalization
hour int
min int
sec int
ns int
return System.Globalization
        internal Time(int hour, int min, int sec, int ns)
        {
            if (hour < 0 || hour > 23)     throw ArgErr.make("hour " + hour).val;
              if (min < 0 || min > 59)       throw ArgErr.make("min " + min).val;
              if (sec < 0 || sec > 59)       throw ArgErr.make("sec " + sec).val;
              if (ns < 0 || ns > 999999999)  throw ArgErr.make("ns " + ns).val;

              this.m_hour = (byte)hour;
              this.m_min  = (byte)min;
              this.m_sec  = (byte)sec;
              this.m_ns   = ns;
        }