You may find useful the following examples and links.
- "Milliseconds from 1 January 1970" example from lectures + instructions on how to run the example can be found here
- The code for the "TimeTeller" example can be found here (but please start with the example above!)
- You can also have a look at the RMI tutorial on Sun's website.