Android Long to Week Convert addWeek(long dateTimeMillis)

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

Description

add Week

License

Open Source License

Declaration

public static long addWeek(long dateTimeMillis) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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 www . jav  a  2s.  c o  m
}

Related

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