lojix/power_model/src/main/com/thesett/aima/attribute/time/TimeUtils.java
public static long ticksWithDateSetTo(long ticks, int date)
    {
        int oldDays = ticksToDate(ticks);

        return ticks - (oldDays * MILLIS_PER_DAY) + (date * MILLIS_PER_DAY);
    }
public static long ticksWithDateSetTo(long ticks, int date)
    {
        int oldDays = ticksToDate(ticks);

        return ticks - (oldDays * MILLIS_PER_DAY) + (date * MILLIS_PER_DAY);
    }
public static long ticksWithDateSetTo ( long ticks , int date ) { int oldDays = ticksToDate ( ticks ) ; return ticks - ( oldDays * MILLIS_PER_DAY ) + ( date * MILLIS_PER_DAY ) ; }
Sets the date component of the timestamp, returning the new timestamp with updated component.

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

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