WorldClock/Scripts/TimeData.cs
/// <summary>
/// Duplicates this TimeData and adds the passed time
/// </summary>
/// <returns>A clone of this TimeData with the added time</returns>
Duplicates this TimeData and adds the passed time
Duplicates this TimeData and adds the passed time
public virtual TimeData CopyAndAddTime(int plus_minutes, int plus_hours, int plus_days, int plus_months, int plus_years)
    {
        TimeData toReturn = new TimeData(
            minutes + plus_minutes,
            hours + plus_hours,
            days + plus_days,
            months + plus_months,
            years + plus_years,
            MyGlobalTime
        );
        return toReturn;
    }
public virtual TimeData CopyAndAddTime ( int plus_minutes , int plus_hours , int plus_days , int plus_months , int plus_years ) { TimeData toReturn = new TimeData ( minutes + plus_minutes , hours + plus_hours , days + plus_days , months + plus_months , years + plus_years , MyGlobalTime ) ; return toReturn ; }
Duplicates this TimeData and adds the passed time
Duplicates this TimeData and adds the passed time
A clone of this TimeData with the added time
A clone of this TimeData with the added time
plus_minutes
int
plus_hours
int
plus_days
int
plus_months
int
plus_years
int