You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
378 B
Java

Timer
package com.ack.webservices.soap.examples.handlers;
import java.util.Calendar;
import java.util.Date;
public class Timer {
public void sendTime( Date theTime ) {
System.out.println( "time on client: " + theTime );
}
public Date getTime() {
// return time on server
return Calendar.getInstance().getInstance().getTime();
}
}