Code example for Time

Methods: normalize, set

0
 
        Time time = new Time(mTimeZone);
        if (mWeek == 0) {
            // This week is weird... 
            if (day < Time.EPOCH_JULIAN_DAY) {
                day++;
            } else if (day == Time.EPOCH_JULIAN_DAY) {
                time.set(1, 0, 1970);
                time.normalize(true);
                return time;
            } 
        } 
 
        time.setJulianDay(day);
        return time;
    } 
 
    @Override 
    protected void onDraw(Canvas canvas) {
        drawBackground(canvas);
        drawWeekNums(canvas);