Compares the {@code #start_time} of this annotation to the given note
@return 1 if the local start time is greater, -1 if it's less or 0 if
equal
541675
@Override
  public int compareTo(Annotation note) {
    return start_time > note.start_time ? 1 : 
      start_time < note.start_time ? -1 : 0;
  }
1104278
public int start() {
    Preconditions.checkState(match != null, "Have not called find()");
    if (start >= 0) {
      return tokens.get(start).start();
    }
    return -1;
  }
480773
public final ReadOnlyObjectProperty<LocalTime> startTimeProperty() {
        if (startTime == null) {
            startTime = new ReadOnlyObjectWrapper<>(this, "startTime", _startTime); //$NON-NLS-1$
        }
        return startTime.getReadOnlyProperty();
    }
1280162
public Occurred compareTo(Clock c) {
        if(this == c) return Occurred.EQUICONCURRENTLY;
        if(ZERO == c) return Occurred.AFTER;
        if(this == ZERO) return Occurred.BEFORE;
        
        int neg = 0, pos = 0, eq = 0;
        try {
            final long[] dst = c.values();
            final int len = dst.length;
            if(_values.length == len) {
                for(int i = 0; i < len; i++) {
                    long cmp = _values[i] - dst[i];
                    if(cmp < 0) {
                        neg++;
                    } else if(cmp > 0) {
                        pos++;
                    } else {
                        eq++;
                    }
                }
                
                if(eq == len) {
                    return Occurred.EQUICONCURRENTLY;
                } else if(neg == len) {
                    return Occurred.BEFORE;
                } else if(pos == len) {
                    return Occurred.AFTER;
                } else {
                    neg += eq;
                    if(neg == len) {
                        return Occurred.BEFORE;
                    }
                    
                    pos += eq;
                    if(pos == len) {
                        return Occurred.AFTER;
                    }
                    
                    return Occurred.CONCURRENTLY;
                }
            }
        } catch(Exception e) {}
        
        throw new IncomparableClocksException(this, c);
    }
153948
@Override
  public int compareTo(StatusRepresentation o) {
    Long mine = getStatusId();
    Long other = o.getStatusId();
    return mine != null ? (other != null ? mine.compareTo(other) : 1)
        : (mine == other ? 0 : -1);
  }
1203261
def interval(key, start_note, interval):
    
    if not notes.is_valid_note(start_note):
        raise KeyError("The start note '%s' is not a valid note" % start_note)
    notes_in_key = keys.get_notes(key)
    for n in notes_in_key:
        if n[0] == start_note[0]:
            index = notes_in_key.index(n)
    return notes_in_key[(index + interval) % 7]
1308107
def get_start_time(self):
        
        # Implemented from template for osid.assessment.AssessmentOffered.get_start_time_template
        if not bool(self._my_map['startTime']):
            raise errors.IllegalState()
        dt = self._my_map['startTime']
        return DateTime(dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.microsecond)
133787
public com.google.api.ads.admanager.axis.v201811.DateTime getStartTime() {
        return startTime;
    }
1177439
public int compareTo(Object o) {
    long thisValue = this.value;
    long thatValue = ((VLongWritable)o).value;
    return (thisValue < thatValue ? -1 : (thisValue == thatValue ? 0 : 1));
  }
571748
public ZonedDateTime getStartZonedDateTime() {
        if (zonedStartDateTime == null) {
            zonedStartDateTime = ZonedDateTime.of(startDate, startTime, zoneId);
        }

        return zonedStartDateTime;
    }
152576
public int compare(Version other) {
        if (other == null) throw new NullPointerException("other version is null");
        if (this._version < other._version) return -1;
        if (this._version > other._version) return 1;
        if (this._revision < other._revision) return -1;
        if (this._revision > other._revision) return 1;
        if (this._subrevision < other._subrevision) return -1;
        if (this._subrevision > other._subrevision) return 1;
        return 0;
    }
543414
private boolean matchesTime(TimeRestrictedAccess filter) {
        Date start = filter.getTimeStart();
        Date end = filter.getTimeEnd();
        if (end == null || start == null) {
            return true;
        }
        long startMs = start.getTime();
        long endMs = end.getTime();
        DateTime currentTime = new LocalTime(DateTimeZone.UTC).toDateTime(new DateTime(0l));
        long nowMs = currentTime.toDate().getTime();
        
        return nowMs >= startMs && nowMs < endMs;
    }
1282668
private JNoteElementAbstract getHighestNoteGlyphBetween(NoteAbstract start, NoteAbstract end, boolean excludeStartAndEnd) {
		Collection jnotes = getNoteGlyphesBetween(start, end);
		JNoteElementAbstract ret = null;
		boolean first = true;
		for (Iterator it = jnotes.iterator(); it.hasNext();) {
			JNoteElementAbstract n = (JNoteElementAbstract) it.next();
			if (first && excludeStartAndEnd) {
				//ignore start ?
				first = false;
				continue;
			}
			if (!it.hasNext() && excludeStartAndEnd) {
				//ignore end ?
				break;
			}
			if (ret == null)
				ret = n;
			else {
				if (n.getBoundingBox().getMinY()
					< ret.getBoundingBox().getMinY())
					ret = n;
			}
		}
		return ret;
	}
1356253
public LocalDateTime getStartAsLocalDateTime() {

        PlainTimestamp tsp = this.getStartAsTimestamp();
        return ((tsp == null) ? null : tsp.toTemporalAccessor());

    }
1103938
public static long getDayStartTime(final long time) {
        final Calendar start = Calendar.getInstance();
        start.setTimeInMillis(time);
        final int year = start.get(Calendar.YEAR);
        final int month = start.get(Calendar.MONTH);
        final int day = start.get(Calendar.DATE);
        start.set(year, month, day, 0, 0, 0);
        start.set(Calendar.MILLISECOND, 0);

        return start.getTimeInMillis();
    }
1026482
public int compareTo (final ITrigger other)
  {

    if (other.getKey () == null && getKey () == null)
      return 0;
    if (other.getKey () == null)
      return -1;
    if (getKey () == null)
      return 1;

    return getKey ().compareTo (other.getKey ());
  }
1306469
private static Boolean isEqualTime(TemporalAccessor left, TemporalAccessor right) {
        boolean result = true;
        Optional<Integer> lH = Optional.ofNullable(left.isSupported(ChronoField.HOUR_OF_DAY) ? left.get(ChronoField.HOUR_OF_DAY) : null);
        Optional<Integer> rH = Optional.ofNullable(right.isSupported(ChronoField.HOUR_OF_DAY) ? right.get(ChronoField.HOUR_OF_DAY) : null);
        result &= lH.equals(rH);
        Optional<Integer> lM = Optional.ofNullable(left.isSupported(ChronoField.MINUTE_OF_HOUR) ? left.get(ChronoField.MINUTE_OF_HOUR) : null);
        Optional<Integer> rM = Optional.ofNullable(right.isSupported(ChronoField.MINUTE_OF_HOUR) ? right.get(ChronoField.MINUTE_OF_HOUR) : null);
        result &= lM.equals(rM);
        Optional<Integer> lS = Optional.ofNullable(left.isSupported(ChronoField.SECOND_OF_MINUTE) ? left.get(ChronoField.SECOND_OF_MINUTE) : null);
        Optional<Integer> rS = Optional.ofNullable(right.isSupported(ChronoField.SECOND_OF_MINUTE) ? right.get(ChronoField.SECOND_OF_MINUTE) : null);
        result &= lS.equals(rS);
        Optional<ZoneId> lTZ = Optional.ofNullable(left.query(TemporalQueries.zone()));
        Optional<ZoneId> rTZ = Optional.ofNullable(right.query(TemporalQueries.zone()));
        result &= lTZ.equals(rTZ);
        return result;
    }