package test;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;

public class DateTimeClient {
	public final static int daytimePort = 5000;
	public static void main(String[] args) {
		Socket clientSocket;
		try {
			clientSocket = new Socket("localhost", daytimePort);
			BufferedReader br = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
			System.out.println(br.readLine());
			Thread.sleep(1500);
			clientSocket.close();
		}catch (IOException e) {
			System.err.println(e);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}	

}
