Lines Matching full:recycle
733 * @param recycle Time object to recycle, otherwise null.
737 public static long convertAlldayUtcToLocal(Time recycle, long utcTime, String tz) {
738 if (recycle == null) {
739 recycle = new Time();
741 recycle.timezone = Time.TIMEZONE_UTC;
742 recycle.set(utcTime);
743 recycle.timezone = tz;
744 return recycle.normalize(true);
747 public static long convertAlldayLocalToUTC(Time recycle, long localTime, String tz) {
748 if (recycle == null) {
749 recycle = new Time();
751 recycle.timezone = tz;
752 recycle.set(localTime);
753 recycle.timezone = Time.TIMEZONE_UTC;
754 return recycle.normalize(true);
760 * @param recycle - Time object to recycle, otherwise null.
764 public static long getNextMidnight(Time recycle, long theTime, String tz) {
765 if (recycle == null) {
766 recycle = new Time();
768 recycle.timezone = tz;
769 recycle.set(theTime);
770 recycle.monthDay ++;
771 recycle.hour = 0;
772 recycle.minute = 0;
773 recycle.second = 0;
774 return recycle.normalize(true);