Java Calendar Time isTime0(final Calendar calendar)

Here you can find the source of isTime0(final Calendar calendar)

Description

is Time

License

Open Source License

Declaration

public static boolean isTime0(final Calendar calendar) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static boolean isTime0(final Calendar calendar) {
        if (calendar.get(Calendar.HOUR_OF_DAY) == 0 && calendar.get(Calendar.MINUTE) == 0
                && calendar.get(Calendar.SECOND) == 0 && calendar.get(Calendar.MILLISECOND) == 0) {
            return true;
        }/* w w w  .  j a v  a 2  s .  co  m*/
        return false;
    }
}

Related

  1. isOverTime(Calendar lastTime, Calendar currentTime, Calendar begTime, Calendar endTime)
  2. isSameLocalTime(Calendar cal1, Calendar cal2)
  3. isSameLocalTime(Calendar cal1, Calendar cal2)
  4. isSameTime(final Calendar aCal1, final Calendar aCal2)
  5. isSleepTime(Calendar calendar, String sleepTimeStart, String sleepTimeEnd)
  6. isWorkTime(Calendar calendar, String workTimeStart, String workTimeEnd)
  7. maximizeTimeFields(final Calendar calendar)
  8. merge(Calendar date, Calendar time)
  9. mergeDateAndTime(final Calendar date, final Calendar time)