lojix/power_model/src/main/com/thesett/aima/attribute/time/TimeUtils.java
public static long ticksWithHoursSetTo(long ticks, int hours)
    {
        long oldHours = ticksToHours(ticks);

        return ticks - (oldHours * MILLIS_PER_HOUR) + (hours * MILLIS_PER_HOUR);
    }
public static long ticksWithHoursSetTo(long ticks, int hours)
    {
        long oldHours = ticksToHours(ticks);

        return ticks - (oldHours * MILLIS_PER_HOUR) + (hours * MILLIS_PER_HOUR);
    }
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.

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

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