@Test public void testIsDateOnly() { Timestamp timestamp = Timestamp.parse("December 30, 1987", "MMM dd, yyyy"); Assert.assertTrue(timestamp.isDateOnly()); }
public boolean isDateOnly() { DateTime joda = getJoda(); return joda.getMillisOfDay() == 0; }
Timestamp implements Comparable<Timestamp> { public boolean isDateOnly() { DateTime joda = getJoda(); return joda.getMillisOfDay() == 0; } }
Timestamp implements Comparable<Timestamp> { public boolean isDateOnly() { DateTime joda = getJoda(); return joda.getMillisOfDay() == 0; } private  Timestamp(DateTime joda); private  Timestamp(long microseconds); private  Timestamp(long microseconds, DateTime joda); private  Timestamp(String description); }
Timestamp implements Comparable<Timestamp> { public boolean isDateOnly() { DateTime joda = getJoda(); return joda.getMillisOfDay() == 0; } private  Timestamp(DateTime joda); private  Timestamp(long microseconds); private  Timestamp(long microseconds, DateTime joda); private  Timestamp(String description); static Timestamp epoch(); static Timestamp fromInstant(Instant instant); static Timestamp fromJoda(DateTime joda); static Timestamp fromMicros(long microseconds); static Timestamp fromString(String description); static Timestamp now(); static Timestamp now(Chronology chronology); static Timestamp now(DateTimeZone zone); static Timestamp parse(String str, DateTimeFormatter formatter); static Timestamp parse(String str, String format); @Override int compareTo(Timestamp other); @Override boolean equals(Object obj); Instant getInstant(); DateTime getJoda(); long getMicros(); @Override int hashCode(); boolean isDateOnly(); @Override String toString(); }
Timestamp implements Comparable<Timestamp> { public boolean isDateOnly() { DateTime joda = getJoda(); return joda.getMillisOfDay() == 0; } private  Timestamp(DateTime joda); private  Timestamp(long microseconds); private  Timestamp(long microseconds, DateTime joda); private  Timestamp(String description); static Timestamp epoch(); static Timestamp fromInstant(Instant instant); static Timestamp fromJoda(DateTime joda); static Timestamp fromMicros(long microseconds); static Timestamp fromString(String description); static Timestamp now(); static Timestamp now(Chronology chronology); static Timestamp now(DateTimeZone zone); static Timestamp parse(String str, DateTimeFormatter formatter); static Timestamp parse(String str, String format); @Override int compareTo(Timestamp other); @Override boolean equals(Object obj); Instant getInstant(); DateTime getJoda(); long getMicros(); @Override int hashCode(); boolean isDateOnly(); @Override String toString(); static final DateTimeFormatter DEFAULT_DATE_ONLY_FORMATTER; static final DateTimeFormatter DEFAULT_FORMATTER; }