lojix/power_model/src/main/com/thesett/aima/attribute/time/TimeUtils.java
public static long timestampToTicks(int year, int month, int day)
    {
        boolean isLeapYear = isLeapYear(year);

        long dayComponent = (long) (day - 1) * MILLIS_PER_DAY;
        long monthComponent = millisToStartOfMonth(month, isLeapYear);
        long yearComponent = millisToYearStart(year);

        return dayComponent + monthComponent + yearComponent;
    }
public static long timestampToTicks(int year, int month, int day)
    {
        boolean isLeapYear = isLeapYear(year);

        long dayComponent = (long) (day - 1) * MILLIS_PER_DAY;
        long monthComponent = millisToStartOfMonth(month, isLeapYear);
        long yearComponent = millisToYearStart(year);

        return dayComponent + monthComponent + yearComponent;
    }
public static long timestampToTicks ( int year , int month , int day ) { boolean isLeapYear = isLeapYear ( year ) ; long dayComponent = ( long ) ( day - 1 ) * MILLIS_PER_DAY ; long monthComponent = millisToStartOfMonth ( month , isLeapYear ) ; long yearComponent = millisToYearStart ( year ) ; return dayComponent + monthComponent + yearComponent ; }
Converts a field by field timestamp into millisecond ticks.

@param  year  The year.
@param  month The month.
@param  day   The day.

@return Millisecond ticks since midnight 01/01/1970.
Converts a field by field timestamp into millisecond ticks .