0

What does the cal.get() method mean?

    public static int getTimesWeekmorning(){

    Calendar cal = Calendar.getInstance(); 
    cal.set(cal.get(Calendar.YEAR),cal.get(Calendar.MONDAY), cal.get(Calendar.DAY_OF_MONTH), 0, 0,0);                              
    cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); 
    return (int) (cal.getTimeInMillis()/1000); 
    } 
halfer
  • 19,824
  • 17
  • 99
  • 186
Brooklyn Knightley
  • 335
  • 1
  • 5
  • 16

0 Answers0