Android Calendar Get getMinTimeMillisWeek()

Here you can find the source of getMinTimeMillisWeek()

Description

get Min Time Millis Week

Declaration

public static long getMinTimeMillisWeek() 

Method Source Code

//package com.java2s;

import java.util.Calendar;

import java.util.GregorianCalendar;

public class Main {
    public static long getMinTimeMillisWeek() {
        final Calendar startTotalCalendar = GregorianCalendar.getInstance();
        startTotalCalendar.set(Calendar.DAY_OF_WEEK,
                startTotalCalendar.getFirstDayOfWeek());
        startTotalCalendar.set(Calendar.HOUR_OF_DAY, 0);
        startTotalCalendar.set(Calendar.MINUTE, 0);
        startTotalCalendar.set(Calendar.SECOND, 0);
        return startTotalCalendar.getTimeInMillis();
    }/* ww  w  . j a  v  a 2  s  . c  o  m*/
}

Related

  1. getLastOfWeek(Calendar cal, int week)
  2. getMaxTimeMillisToday()
  3. getMaxTimeMillisToday(final Calendar calendar)
  4. getMinTimeMillisToday()
  5. getMinTimeMillisToday(final Calendar calendar)
  6. getMinute()
  7. getMinute(Calendar c)
  8. getMonth()
  9. getMonth(Calendar c)