Code example for Timestamp

0
		} 
 
		private ChildEvent cursorToEvent(Cursor cursor) {
			ChildEvent event = new ChildEvent();
			event.setId(cursor.getLong(0));
			event.setEventTime(new Timestamp(cursor.getLong(1)));
			event.setEventType(cursor.getString(2));
			return event;
		}	 
	 
}