mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.5.x] Fixed #21133 -- Clarifed documentation about strftime formatting.
Backport of 43a2ec7999 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							b541cf24d0
						
					
				
				
					commit
					b8e7730f3e
				
			| @@ -4,6 +4,11 @@ Date-based mixins | ||||
|  | ||||
| .. currentmodule:: django.views.generic.dates | ||||
|  | ||||
| .. note:: | ||||
|     All the date formatting attributes in these mixins use | ||||
|     :func:`~time.strftime` format characters. Do not try to use the format | ||||
|     characters from the :ttag:`now` template tag as they are not compatible. | ||||
|  | ||||
| YearMixin | ||||
| --------- | ||||
|  | ||||
|   | ||||
| @@ -1201,6 +1201,10 @@ Formats a date according to the given format. | ||||
| Uses a similar format as PHP's ``date()`` function (http://php.net/date) | ||||
| with some differences. | ||||
|  | ||||
| .. note:: | ||||
|     These format characters are not used in Django outside of templates. They | ||||
|     were designed to be compatible with PHP to ease transitioning for designers. | ||||
|  | ||||
| Available format strings: | ||||
|  | ||||
| ================  ========================================  ===================== | ||||
|   | ||||
		Reference in New Issue
	
	Block a user