Android Calendar Add tomorrow(Calendar c)

Here you can find the source of tomorrow(Calendar c)

Description

tomorrow

Declaration

public static Calendar tomorrow(Calendar c) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static Calendar tomorrow(Calendar c) {
        long offset = 1 * 24 * 60 * 60 * 1000;
        Calendar calendar = null;
        if (c != null) {
            calendar = c;//from   w w w . j  a v  a2s  .  c  om
        } else {
            calendar = Calendar.getInstance();
        }

        calendar.setTimeInMillis(calendar.getTimeInMillis() + offset);
        return calendar;
    }
}

Related

  1. afterNDays(Calendar c, int n)
  2. getDateAdd(Date date, int amount)
  3. getDateByAddFltHour(float flt)
  4. getDateByAddHour(String datetime, int minute)
  5. getFormatCurrentAdd(int amount, String format)
  6. yesterday(Calendar c)
  7. addToCurrent(int type, int i)
  8. rollGetDate(Calendar calendar, int days)