Tests date is after another date
344494
function( name, actual, lower ) {
		var self = this,
			passed = false,
			message = '';

		if ( munit.isDate( actual ) && munit.isDate( lower ) ) {
			passed = actual.getTime() > lower.getTime();
			message = "Date '" + actual + "' is not after '" + lower + "'";
		}
		else {
			message = munit.isDate( actual ) ?
				"Lower value is not a Date object '" + lower + "'" :
				"Actual value is not a Date object '" + actual + "'";
		}

		return self.ok( name, passed, self.dateAfter, message );
	}
826195
@Override
    public int compareTo(TimestampType dateval) {
        int comp = m_date.compareTo(dateval.m_date);
        if (comp == 0) {
            return m_usecs - dateval.m_usecs;
        }
        else {
            return comp;
        }
    }
517024
function isSt(date, testOffset) {
      date = date || new Date();
      var offset = testOffset || date.getTimezoneOffset();
      return offset == jsk.invertedSt();
    }
903819
function date() {
  const date = new Date()
  return (
    pad(date.getUTCMonth() + 1) +
    pad(date.getUTCDate()) +
    pad(date.getUTCHours()) +
    pad(date.getUTCMinutes()) +
    pad(date.getUTCSeconds())
  )
}
452543
def onOffset(self, date):
        """"""
        mod_month = (date.month - self.month) % 3
        return mod_month == 0 and date.day == self._get_offset_day(date)
1172164
public static CompareDates compareTwoDates(Date date1, Date date2) {
		Date d1 = new Date(date1.getTime());// to unify the format of the dates
											// before the compare
		Date d2 = new Date(date2.getTime());
		if (d1.compareTo(d2) < 0)
			return CompareDates.DATE1_LESS_THAN_DATE2;
		else if (d1.compareTo(d2) > 0)
			return CompareDates.DATE1_GREATER_THAN_DATE2;
		else
			return CompareDates.DATE1_EQUAL_DATE2;
	}
1062634
def onOffset(self, date):
        """"""
        return date.day == _days_in_month(date) and date.month == self.month
1296700
public function is_after($date)
  {
    //check if the argument $date is an instance of this class
    if ( $date instanceof $this){
      $tmp = $date;
    }
    else {
      $tmp = new \bbn\time($date);
    }
    return $this->get_time() > $tmp->get_time(); 
  }
756833
function(a, b) {
       if (typeof a != typeof b) return
       if (a === b) return true
       if (a instanceof RegExp)
         return a.toString() === b.toString()
       if (a instanceof Date)
         return Number(a) === Number(b)
       if (typeof a != 'object') return
       if (a.length !== undefined)
         if (a.length !== b.length) return
         else
           for (var i = 0, len = a.length; i < len; ++i)
             if (!equal(a[i], b[i]))
               return
       for (var key in a)
         if (!equal(a[key], b[key]))
           return
       return true
     }
1054653
protected Date afterParse(Date date)
	{
		if (postParseCallback == null)
		{
			return date;
		}
		
		return postParseCallback.process(date);
	}
1145496
function(inst, datesText) {
			if (datesText === inst.lastVal) {
				return;
			}
			inst.lastVal = datesText;
			datesText = datesText.split(inst.options.multiSelect ? inst.options.multiSeparator :
				(inst.options.rangeSelect ? inst.options.rangeSeparator : '\x00'));
			var dates = [];
			for (var i = 0; i < datesText.length; i++) {
				try {
					var date = inst.options.calendar.parseDate(inst.get('dateFormat'), datesText[i]);
					if (date) {
						var found = false;
						for (var j = 0; j < dates.length; j++) {
							if (dates[j].compareTo(date) === 0) {
								found = true;
								break;
							}
						}
						if (!found) {
							dates.push(date);
						}
					}
				}
				catch (e) {
					// Ignore
				}
			}
			dates.splice(inst.options.multiSelect || (inst.options.rangeSelect ? 2 : 1), dates.length);
			if (inst.options.rangeSelect && dates.length === 1) {
				dates[1] = dates[0];
			}
			return dates;
		}
1367993
function( name, actual, expected ) {
		var self = this,
			passed = false,
			message = '';

		if ( munit.isDate( actual ) && munit.isDate( expected ) ) {
			passed = actual.getTime() === expected.getTime();
			message = "Date '" + actual + "' does not match '" + expected + "'";
		}
		else {
			message = munit.isDate( actual ) ?
				"Expected value is not a Date object '" + expected + "'" :
				"Actual value is not a Date object '" + actual + "'";
		}

		return self.ok( name, passed, self.dateEquals, message );
	}
34580
private static boolean checkDate(Calendar cal, Calendar other) {
		return checkDate(cal, other.get(Calendar.DATE), other.get(Calendar.MONTH));
	}
851242
private void toNextDate(Calendar date, int interval) {

        long previousDate = date.getTimeInMillis();
        if (!m_weekOfMonthIterator.hasNext()) {
            date.add(Calendar.MONTH, interval);
            m_weekOfMonthIterator = m_weeksOfMonth.iterator();
        }
        toCorrectDateWithDay(date, m_weekOfMonthIterator.next());
        if (previousDate == date.getTimeInMillis()) { // this can happen if the fourth and the last week are checked.
            toNextDate(date);
        }

    }
659779
function icaltime_compare(other) {
      var a = this.toSeconds();
      var b = other.toSeconds();
      return (a > b) - (b > a);
    }
997285
def is_newer_than(after, seconds):
    """"""
    if isinstance(after, six.string_types):
        after = parse_strtime(after).replace(tzinfo=None)
    else:
        after = after.replace(tzinfo=None)

    return after - utcnow() > datetime.timedelta(seconds=seconds)
557850
def assertNotEqual(first, second, message=None):
    
    if not first != second:
        raise TestStepFail(
            format_message(message) if message is not None else "Assert: %s == %s" % (str(first),
                                                                                      str(second)))