Code example for Timestamp

Methods: getTime

0
	private Publication cursorToPublication(Cursor cursor){
		Publication pub = new Publication();
		pub.setId(cursor.getLong(0));
		pub.setTitle(cursor.getString(1));
		pub.setAbstract(cursor.getString(2));
		Timestamp timestamp = new Timestamp(cursor.getLong(3));
		pub.setLastModified(new Date(timestamp.getTime()));
		 
		return pub;
	} 
}