Android Long to Week Convert addWeek(long dateTimeMillis)

Here you can find the source of addWeek(long dateTimeMillis)

Description

add Week

Declaration

public static long addWeek(long dateTimeMillis) 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class Main {
    public static long addWeek(long dateTimeMillis) {
        Calendar calendar = new GregorianCalendar();
        calendar.setTimeInMillis(dateTimeMillis);
        calendar.add(Calendar.DATE, 7);
        return calendar.getTimeInMillis();
    }//from w ww. ja  v a2s.c  om
}

Related

  1. isInNextWeek(long lTime)
  2. isInLastWeek(long lTime)
  3. isInCurrentWeek(long lTime)
  4. isBeyondNextWeek(long lTime)
  5. addWeek(long dateTimeMillis)