fork download
  1. Date firstDate = Date.newInstance(2006, 12, 2);
  2. Date secondDate = Date.newInstance(2012, 12, 8);
  3. Integer monthsBetween = firstDate.monthsBetween(secondDate);
Success #stdin #stdout #stderr 0.02s 10008KB
stdin
Standard input is empty
stdout
Object: Date error: did not understand #firstDate
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
Date class(Object)>>doesNotUnderstand: #firstDate (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
Object: 2006 error: did not understand #,
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
SmallInteger(Object)>>doesNotUnderstand: #, (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:1: expected expression