
import java.util.* ;
import java.text.* ;
import java.io.Serializable ;

class TimeCardEntry
implements Serializable
{
	String comment ;
	Date dateBegin ;
	Date dateEnd ;
	int projectID ; 
	
	TimeCardEntry( Date dateBegin, Date dateEnd, int projID ) 
	{
		this.dateBegin = dateBegin ;
		this.dateEnd = dateEnd ;
		this.projectID = projID ;
		comment = null ;
	}
	
	void setComment(String c)
	{
		comment = c ;
	}
	
	void print()
	{
		DateFormat dateFormat = DateFormat.getDateInstance() ;
		DateFormat timeFormat = DateFormat.getTimeInstance() ;
		
		System.out.println("Start: " + dateFormat.format(dateBegin) 
			+ " " + timeFormat.format(dateBegin)) ;
		System.out.println("End: " + dateFormat.format(dateEnd) 
			+ " " + timeFormat.format(dateEnd)) ;
		System.out.println("Project ID: " + projectID ) ;
		System.out.println("\nComments: ") ;	
	}
}
