Java Calendar Day calendarAtStartOfToday()

Here you can find the source of calendarAtStartOfToday()

Description

calendar At Start Of Today

License

Apache License

Declaration

public static Calendar calendarAtStartOfToday() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

import java.util.GregorianCalendar;

import java.util.TimeZone;

public class Main {
    public static Calendar calendarAtStartOfToday() {
        GregorianCalendar calendar = new GregorianCalendar();
        calendar.setTimeZone(TimeZone.getTimeZone("UTC"));
        calendar.set(Calendar.HOUR_OF_DAY, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        calendar.set(Calendar.MILLISECOND, 0);
        return calendar;
    }//  ww  w .  j a  va2s.  c o m
}

Related

  1. absoluteDay(Calendar cal)
  2. absoluteDay(Calendar cal, boolean use1904windowing)
  3. afterCurrentDay(Calendar time)
  4. calendarDayToOrdinalDay(int dow)
  5. calToBeginningOfDay(Calendar c)
  6. ceilAllLessThanDay(Calendar cal)
  7. convertEndOfDay(Calendar cal)