lojix/power_model/src/main/com/thesett/aima/attribute/time/TimeUtils.java
public static long timeOfDayToTicks(int hour, int minute, int second, int millisecond)
    {
        return millisecond + (MILLIS_PER_SECOND * second) + (MILLIS_PER_MINUTE * minute) + (MILLIS_PER_HOUR * hour);
    }
public static long timeOfDayToTicks(int hour, int minute, int second, int millisecond)
    {
        return millisecond + (MILLIS_PER_SECOND * second) + (MILLIS_PER_MINUTE * minute) + (MILLIS_PER_HOUR * hour);
    }
Converts a field by field time of day into millisecond ticks.

@param  hour        The hours since midnight.
@param  minute      The minutes.
@param  second      The seconds.
@param  millisecond The milliseconds.

@return Millisecond ticks since midnight.