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;
		}	 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE