public static long ticksWithHoursSetTo ( long ticks , int hours ) { long oldHours = ticksToHours ( ticks ) ; return ticks - ( oldHours * MILLIS_PER_HOUR ) + ( hours * MILLIS_PER_HOUR ) ; }
Sets the component of the timestamp returning the new timestamp with updated component .