Code example for Timestamp

Methods: getNanos, setNanos

0
	 *  
	 * @author F4955639 Jo�o Paulo Limberger 
	 * @return java.sql.Timestamp - Timestamp com nanos preenchidos. 
	 */ 
	public static java.sql.Timestamp getTimestampNanos() {
		java.sql.Timestamp ts = new java.sql.Timestamp(System.currentTimeMillis());
		ts.setNanos((int) (ts.getNanos() + (System.nanoTime() % 1000000)));
 
		return ts;
	} 
}