java - Given two Joda DateTime objects, how can I check if one is 30 minutes or above before another one? -


I want to see that the present time is 30 minutes before the datetime object, how can it be acquired in the connected datetime?

  static boolean intime (date time, first minute) {date time start = date time. more information () ; Date time expiry = now.plus minutes (first minute); Come back! (Time. Before (start) || time. Interval (end)); }  

Comments