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 dtfNY = DateTimeFormatter.ofPattern(defaultSimpleDateFormatPattern, Locale.ENGLISH)
									.withZone(tzNY);
		DateTimeFormatter dtfLos = DateTimeFormatter.ofPattern(defaultSimpleDateFormatPattern, Locale.ENGLISH)
									.withZone(tzLos);

		ZonedDateTime zdtNY = ZonedDateTime.parse(dateToTest, dtfNY);
		ZonedDateTime zdtLos = ZonedDateTime.parse(dateToTest, dtfLos);

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