Home | History | Annotate | Download | only in util

Lines Matching refs:today

233         final Calendar today = Calendar.getInstance();
234 today.setTime(new Date());
236 // Round the current time to the exact start of today so that when we compare
237 // today against the target date, both dates are set to exactly 0000H.
238 today.set(Calendar.HOUR_OF_DAY, 0);
239 today.set(Calendar.MINUTE, 0);
240 today.set(Calendar.SECOND, 0);
241 today.set(Calendar.MILLISECOND, 0);
249 // Convert from the UTC date to the local date. Set the year to today's year if the
251 anniversary.set(!isYearSet ? today.get(Calendar.YEAR) : targetYear,
253 // If the anniversary's date is before the start of today and there is no year set,
255 // today. If the day is a leap year, keep going until we get the next leap year anniversary
258 int anniversaryYear = today.get(Calendar.YEAR);
259 if (anniversary.before(today) ||