Code example for Time

Methods: format3339, set

0
		public String toString() {
	        return what;
		} 
 
		public String getEventDetails() {
			Time t = new Time();
			t.set(when);
			String msg = "What: " + what + "\nWhere: " + where + "\nWhen: "+ t.format3339(false) + "\nType: " + type;
			return msg;
		} 
 
		//TODO proper checks 
		public boolean isComplete() { 
			if (what == null || where == null) return false;
			else return true; 
		} 
}