Skip to content
Snippets Groups Projects
Commit cbd7a79b authored by Bryce McKinlay's avatar Bryce McKinlay Committed by Bryce McKinlay
Browse files

re PR libgcj/16574 (java.sql.Timestamp#toString() does not deal with fractional seconds correctly)

2004-07-15  Bryce McKinlay  <mckinlay@redhat.com>

	PR libgcj/16574
	* java/sql/Timestamp.java (dateFormat): Renamed from sdf.
	(decimalFormat): New static variable.
	(sbuf): Likewise.
	(getTime): New. Override Date.getTime().
	(toString): Synchronize. Use decimalFormat to format nanos value
	correctly. Truncate extra zeros.
	(before): Compare getNanos() only if getTime() is equal.
	(after): Likewise.

From-SVN: r84784
parent e4f78bd4
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment