mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix incorrect example of to_timestamp() usage.
Must use HH24 not HH to read a hour value exceeding 12.
This was already fixed in HEAD in commit d3cd36a13, but I didn't think
of backpatching it.
Report: https://postgr.es/m/20161229170043.10139.21416@wrigleys.postgresql.org
			
			
This commit is contained in:
		@@ -5980,7 +5980,7 @@ SELECT regexp_matches('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
 | 
				
			|||||||
      <para>
 | 
					      <para>
 | 
				
			||||||
       Here is a more
 | 
					       Here is a more
 | 
				
			||||||
       complex example:
 | 
					       complex example:
 | 
				
			||||||
       <literal>to_timestamp('15:12:02.020.001230', 'HH:MI:SS.MS.US')</literal>
 | 
					       <literal>to_timestamp('15:12:02.020.001230', 'HH24:MI:SS.MS.US')</literal>
 | 
				
			||||||
       is 15 hours, 12 minutes, and 2 seconds + 20 milliseconds +
 | 
					       is 15 hours, 12 minutes, and 2 seconds + 20 milliseconds +
 | 
				
			||||||
       1230 microseconds = 2.021230 seconds.
 | 
					       1230 microseconds = 2.021230 seconds.
 | 
				
			||||||
      </para>
 | 
					      </para>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user