Examples of minute()


Examples of com.google.ical.values.DateTimeValue.minute()

    DateTimeValue date = timeFromSecsSinceEpoch(epochSecs);
    Calendar cal = new GregorianCalendar(zone);
    cal.clear(); // clear millis
    cal.setTimeZone(zone);
    cal.set(date.year(), date.month() - 1, date.day(),
            date.hour(), date.minute(), date.second());
    return cal.getTimeInMillis();
  }

  private static DateTimeValue convert(DateTimeValue time,
                                       TimeZone zone,
View Full Code Here

Examples of com.google.ical.values.TimeValue.minute()

    db.month += dur.month();
    db.day += dur.day();
    if (dur instanceof TimeValue) {
      TimeValue tdur = (TimeValue) dur;
      db.hour += tdur.hour();
      db.minute += tdur.minute();
      db.second += tdur.second();
      return db.toDateTime();
    } else if (d instanceof TimeValue) {
      return db.toDateTime();
    }
View Full Code Here

Examples of com.google.ical.values.TimeValue.minute()

                  SECS_PER_DAY;
    if (date instanceof TimeValue) {
      TimeValue time = (TimeValue) date;
      result +=
        time.second() +
        60 * (time.minute() +
              60 * time.hour());
    }
    return result;
  }

View Full Code Here

Examples of com.google.ical.values.TimeValue.minute()

    this.month = dv.month();
    this.day = dv.day();
    if (dv instanceof TimeValue) {
      TimeValue tv = (TimeValue) dv;
      this.hour = tv.hour();
      this.minute = tv.minute();
      this.second = tv.second();
    }
  }

  /**
 
View Full Code Here

Examples of com.google.ical.values.TimeValue.minute()

      (((((long) dv.year()) << 4) + dv.month()) << 5) + dv.day();
    long dtbComparable =
      ((((long) year << 4) + month << 5)) + day;
    if (dv instanceof TimeValue) {
      TimeValue tv = (TimeValue) dv;
      dvComparable = (((((dvComparable << 5) + tv.hour()) << 6) + tv.minute())
                      << 6) + tv.second();
      dtbComparable = (((((dtbComparable << 5) + hour) << 6) + minute)
                       << 6) + second;
    }
    long delta = dtbComparable - dvComparable;
View Full Code Here

Examples of com.google.ical.values.TimeValue.minute()

      TimeValue tvUtc = (TimeValue) dvUtc;
      c.set(dvUtc.year(),
            dvUtc.month() - 1// java.util's dates are zero-indexed
            dvUtc.day(),
            tvUtc.hour(),
            tvUtc.minute(),
            tvUtc.second());
    } else {
      c.set(dvUtc.year(),
            dvUtc.month() - 1// java.util's dates are zero-indexed
            dvUtc.day(),
View Full Code Here

Examples of com.google.ical.values.TimeValue.minute()

      return new DateTime(
          dvUtc.year(),
          dvUtc.month()// java.util's dates are zero-indexed
          dvUtc.day(),
          tvUtc.hour(),
          tvUtc.minute(),
          tvUtc.second(),
          0,
          DateTimeZone.UTC);
    } else {
      return new DateTime(
View Full Code Here

Examples of com.google.ical.values.TimeValue.minute()

          builder.month = d.month();
          builder.day = d.day();
          if (d instanceof TimeValue) {
            TimeValue t = (TimeValue) d;
            builder.hour = t.hour();
            builder.minute = t.minute();
            builder.second = t.second();
          }
          return true;
        }
      };
View Full Code Here

Examples of com.google.ical.values.TimeValue.minute()

    final long bitField = minutesByBit;
    return new Predicate<DateValue>() {
      public boolean apply(DateValue date) {
        if (!(date instanceof TimeValue)) { return false; }
        TimeValue tv = (TimeValue) date;
        return (bitField & (1L << tv.minute())) != 0;
      }
    };
  }

View Full Code Here

Examples of com.google.ical.values.TimeValue.minute()

      // events are distinct from all-day events, in keeping with
      // DateValue.compareTo.

      // It would be odd if an all day exclusion matched a midnight event on
      // the same day, but not one at another time of day.
      return (((((comp << 5) + tv.hour()) << 6) + tv.minute()) << 6)
        +  tv.second() + 1;
    } else {
      return comp << 17;
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.