Code example for Time

Methods: setJulianDay

0
                queryData.start, queryData.end), PROJECTION,
                buildQuerySelection(), null, AGENDA_SORT_ORDER);
    } 
 
    private String formatDateString(int julianDay) {
        Time time = new Time(Utils.getTimeZone(mContext, mUpdateTZ));
        time.setJulianDay(julianDay);
        long millis = time.toMillis(false);
        return Utils.formatDateRange(mContext, millis, millis,
                DateUtils.FORMAT_SHOW_YEAR | DateUtils.FORMAT_SHOW_DATE
                        | DateUtils.FORMAT_ABBREV_MONTH).toString();
    } 
 
    private void updateHeaderFooter(final int start, final int end) {
        mHeaderView.setText(mContext.getString(R.string.show_older_events,
                formatDateString(start)));
        mFooterView.setText(mContext.getString(R.string.show_newer_events,
                formatDateString(end)));
    } 
 
    private class QueryHandler extends AsyncQueryHandler {