import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;

public class Main {
	public static void main(String[] args) {
		String defaultSimpleDateFormatPattern = "MMM dd, uuuu HH:mm:ss";
		ZoneId tzNY = ZoneId.of("America/New_York");
		ZoneId tzLos = ZoneId.of("America/Los_Angeles");
		String dateToTest = "Jan 03, 2015 23:59:59";

		DateTimeFormatter dtf = DateTimeFormatter.ofPattern(defaultSimpleDateFormatPattern, Locale.ENGLISH);
		LocalDateTime ldt = LocalDateTime.parse(dateToTest, dtf);

		ZonedDateTime zdtNY = ldt.atZone(tzNY);
		ZonedDateTime zdtLos = ldt.atZone(tzLos);

		System.out.println(zdtNY.isAfter(zdtLos) ? "after" : zdtNY.isBefore(zdtLos) ? "before" : "equal");
	}
}