def initialize_days_hours_minutes(days, hours, minutes, seconds = 0, milliseconds = 0)
      if seconds.is_a?(Rational)
        s = seconds.truncate
        milliseconds = milliseconds + ((seconds - s) * 1000).round
        seconds = s
      end

      @totalMilliseconds =
        days * MILLISECONDS_IN_DAY +
        hours * MILLISECONDS_IN_HOUR +
        minutes * MILLISECONDS_IN_MINUTE +
        seconds * MILLISECONDS_IN_SECOND +
        milliseconds
    end
def initialize_days_hours_minutes(days, hours, minutes, seconds = 0, milliseconds = 0)
      if seconds.is_a?(Rational)
        s = seconds.truncate
        milliseconds = milliseconds + ((seconds - s) * 1000).round
        seconds = s
      end

      @totalMilliseconds =
        days * MILLISECONDS_IN_DAY +
        hours * MILLISECONDS_IN_HOUR +
        minutes * MILLISECONDS_IN_MINUTE +
        seconds * MILLISECONDS_IN_SECOND +
        milliseconds
    end
Initializes an SdlTimeSpan defined by its day, hour, minute and
 millisecond parts.
 Note: if the timespan is negative all components should be negative.