public static long ticksWithMinutesSetTo(long ticks, int minutes)
    {
        long oldMinutes = ticksToMinutes(ticks);

        return ticks - (oldMinutes * MILLIS_PER_MINUTE) + (minutes * MILLIS_PER_MINUTE);
    }
public static long ticksWithMinutesSetTo(long ticks, int minutes)
    {
        long oldMinutes = ticksToMinutes(ticks);

        return ticks - (oldMinutes * MILLIS_PER_MINUTE) + (minutes * MILLIS_PER_MINUTE);
    }
public static long ticksWithMinutesSetTo ( long ticks , int minutes ) { long oldMinutes = ticksToMinutes ( ticks ) ; return ticks - ( oldMinutes * MILLIS_PER_MINUTE ) + ( minutes * MILLIS_PER_MINUTE ) ; }
Sets the minutes component of the timestamp, returning the new timestamp with updated component.

@param  ticks   The time in ticks.
@param  minutes The new minutes field.

@return The new time in ticks.
Sets the minutes component of the timestamp returning the new timestamp with updated component .