Errors trying to compile SetArduinoClock example

Errors trying to compile SetArduinoClock example.

I think I am missing a library or part of one. The example will not compile. I get the following error.

error: variable or field 'serialEvent' declared void In function 'void setup()':
In function 'long int getTimeNow()':
In function 'void mousePressed()':
At global scope:

The other example, DateTime, compiles but does not seem to do anything. I expect the problems are obvious to an expert, but they are over my head.

Hi dogsled, SetArduinoTime is a Processing sketch - see http://www.processing.org/ for information on how to download and install processing.

The Arduino DateTime.pde example sketch waits for the clock to be set (from Processing or another source) before showing the time.

You can make the following change to the arduino example sketch to display the time staring from midnight on Jan 1

void setup(){
  Serial.begin(19200);
  pinMode(13,OUTPUT); // we flash the LED each second
  DateTime.sync(1230768000);   // Sync Arduino clock to midnight Jan 1 2009
}

Not very useful as a clock but it will demonstrate the time display function.