public static long ticksWithYearSetTo(long ticks, int year) {
    """
	Sets the year component of the timestamp, returning the new timestamp with updated component.
	
	@param  ticks The time in ticks.
	@param  year  The new year field.
	
	@return The new time in ticks.
    """
        int oldYear = ticksToYears(ticks);

        return ticks - millisToYearStart(oldYear) + millisToYearStart(year);
    }
public static long ticksWithYearSetTo(long ticks, int year)
    {
        int oldYear = ticksToYears(ticks);

        return ticks - millisToYearStart(oldYear) + millisToYearStart(year);
    }
public static long ticksWithYearSetTo ( long ticks , int year ) { int oldYear = ticksToYears ( ticks ) ; return ticks - millisToYearStart ( oldYear ) + millisToYearStart ( year ) ; }
Sets the year component of the timestamp, returning the new timestamp with updated component.

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

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