mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	SourceForge bug #437041:
Use a portable format in the example that creates a timestamp suitable for use in email, also updating it and the footnote from RFC 822 to RFC 2822.
This commit is contained in:
		
							parent
							
								
									9f9bd6af78
								
							
						
					
					
						commit
						f29ca18df3
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
					@ -230,19 +230,19 @@ Notes:
 | 
				
			||||||
\end{description}
 | 
					\end{description}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Here is an example, a format for dates compatible with that specified 
 | 
					Here is an example, a format for dates compatible with that specified 
 | 
				
			||||||
in the \rfc{822} Internet email standard.
 | 
					in the \rfc{2822} Internet email standard.
 | 
				
			||||||
	\footnote{The use of \%Z is now
 | 
						\footnote{The use of \code{\%Z} is now
 | 
				
			||||||
	deprecated, but the \%z escape that expands to the preferred 
 | 
						deprecated, but the \code{\%z} escape that expands to the preferred 
 | 
				
			||||||
	hour/minute offset is not supported by all ANSI C libraries. Also,
 | 
						hour/minute offset is not supported by all ANSI C libraries. Also,
 | 
				
			||||||
	a strict reading of the original 1982 \rfc{822} standard calls for
 | 
						a strict reading of the original 1982 \rfc{822} standard calls for
 | 
				
			||||||
	a two-digit year (\%y rather than \%Y), but practice moved to
 | 
						a two-digit year (\%y rather than \%Y), but practice moved to
 | 
				
			||||||
	4-digit years long before the year 2000.}
 | 
						4-digit years long before the year 2000.  The 4-digit year has
 | 
				
			||||||
 | 
					        been mandated by \rfc{2822}, which obsoletes \rfc{822}.}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\begin{verbatim}
 | 
					\begin{verbatim}
 | 
				
			||||||
>>> from time import *
 | 
					>>> from time import gmtime, strftime
 | 
				
			||||||
>>> strftime("%a, %d %b %Y %H:%M:%S %Z", localtime())
 | 
					>>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())
 | 
				
			||||||
'Sat, 27 Jan 2001 05:15:05 EST'
 | 
					'Thu, 28 Jun 2001 14:17:15 +0000'
 | 
				
			||||||
>>>
 | 
					 | 
				
			||||||
\end{verbatim}
 | 
					\end{verbatim}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Additional directives may be supported on certain platforms, but
 | 
					Additional directives may be supported on certain platforms, but
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue