package bj.pranie.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

/**
 * Created by Sebastian Sokolowski on 03.02.17.
 */
public class TimeUtil {
    private static final SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm");

    private static TimeZone timeZone = TimeZone.getTimeZone("Europe/Warsaw");

    public static String getTime() {
        return calendar.get(Calendar.HOUR_OF_DAY) + ":"+ calendar.get(Calendar.MINUTE);
    }

    public static Calendar getCalendar(){
        return Calendar.getInstance(timeZone);
    }

    public static boolean isPast(String time, String date) {
        Calendar now = TimeUtil.getCalendar();

        Calendar calendar = TimeUtil.getCalendar();
        try {
            calendar.setTime(format.parse(date + " " + time));
        } catch (ParseException e) {
            e.printStackTrace();
            return false;
        }

        if (now.before(calendar)) {
            return false;
        } else {
            return true;
        }
    }
}

@@ -439,105 +439,28 @@
 tic 
-String getTime() %7B%0A        return calendar.get(Calendar.HOUR_OF_DAY) + %22:%22+ calendar.
+Calendar 
 get
-(
 Calendar
 .MIN
@@ -459,43 +459,20 @@
 ndar
-.MINUTE);
+()%7B
 %0A    
-%7D%0A%0A
     
-public static 
 Cale
@@ -480,37 +480,18 @@
 dar 
-getC
+c
 alendar
-()%7B%0A        return
+ =
  Cal
@@ -519,16 +519,41 @@
 eZone);%0A
+        return calendar;%0A
     %7D%0A%0A 

Remove unused get time.