Android Calendar Add addToCurrent(int type, int i)

Here you can find the source of addToCurrent(int type, int i)

Description

add To Current

Declaration

public static long addToCurrent(int type, int i) 

Method Source Code

//package com.java2s;
import java.util.Calendar;

public class Main {
    public static long addToCurrent(int type, int i) {
        Calendar calendar = Calendar.getInstance();
        calendar.add(type, i);//from  w w  w  . j  av a2 s  .c  o  m
        return calendar.getTimeInMillis();
    }
}

Related

  1. getDateByAddFltHour(float flt)
  2. getDateByAddHour(String datetime, int minute)
  3. getFormatCurrentAdd(int amount, String format)
  4. tomorrow(Calendar c)
  5. yesterday(Calendar c)
  6. rollGetDate(Calendar calendar, int days)