Commit Graph

54 Commits

Author SHA1 Message Date
Serhiy Storchaka 1ae56fb9ee Issue #21818: Fixed references to classes that have names matching with module
names.
2016-12-02 23:13:42 +02:00
Serhiy Storchaka b4905efe23 Issue #26736: Used HTTPS for external links in the documentation if possible. 2016-05-07 10:50:12 +03:00
Martin Panter ce9f8e2492 Issue #26678: Fix datetime.tzinfo indexing and “tzinfo” attribute links 2016-04-01 21:48:24 +00:00
Martin Panter 00f19eff3e Issue #25179: Preparatory cleanup of existing docs on string formatting
* There was a link pointing to the section on the string.Formatter class (and
  multiple links in Python 3), when the section on the common format string
  syntax is probably more appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
  and this is tested in Python 3; see Issue #19729 for instance
2016-02-08 01:34:09 +00:00
Benjamin Peterson cf0d31c8ba fix relative link (closes #24057) 2015-04-25 14:15:16 -04:00
Georg Brandl 0f5d6c00b4 Fixing broken links in doc, part 4: some more breaks and redirects 2014-10-29 10:57:37 +01:00
Georg Brandl 06f3b3b98c Use https:// URLs when referring to python.org hosts. 2014-10-29 08:36:35 +01:00
Georg Brandl b64f40f3e9 Fix typo: js_JP is not a valid locale. 2013-10-29 08:05:10 +01:00
Georg Brandl 1b1c11d208 Refer to strftime(3) manpage for platform specific format codes.
Suggested by Skip Montanaro on docs@.
2013-10-13 18:28:25 +02:00
David Wolever a80d3a09fd Issue #18718: datetime documentation contradictory on leap second support 2013-08-14 14:33:54 -04:00
David Wolever 452dd38150 Issue #17701: Improving strftime documentation 2013-08-12 15:50:10 -04:00
David Wolever bd9cbf0064 Clarify that strftime's encoding is based on locale 2013-05-23 17:42:14 -04:00
David Wolever db6d10a8bb Remove Japanese datetime examples 2013-05-23 17:23:49 -04:00
David Wolever 0d2e78c275 Correct misleading strftime documentation.
strftime using locale-aware formatting directives will often, but not awlays,
produce UTF-8-encoded Unicode.
2013-04-13 22:40:11 -04:00
David Wolever c7953ef73e Adding localized examples to strftime documentation. 2013-04-13 20:50:24 -04:00
David Wolever 73480ef578 Improving strftime documentation.
Re-ordering the table so similar directives are grouped together, adding
examples, and removing some redundancy in the description of the ``%f``
formatter.
2013-04-13 19:12:58 -04:00
Ezio Melotti cfb63cd3b1 #8913: add examples and docs for date/time/datetime.__format__. Patch by Heikki Partanen. 2013-04-04 09:16:15 +03:00
Jason R. Coombs 86af58156b #16985: Remove incorrect phrase indication presence of non-present concrete UTC tzinfo instance. 2013-01-18 15:33:39 -05:00
Andrew Svetlov 766849b978 Document that hour in datetime.time ctor is optional parameter.
Thanks to Sean Munkel from docs@
2012-12-06 16:32:37 +02:00
Georg Brandl e565cf805d Remove patch artifacts. 2012-08-21 19:44:00 +02:00
Senthil Kumaran 189bd91255 issue13666 - Fixing datetime documentation example when using tzinfo 2012-06-26 20:05:12 +08:00
R David Murray 8349bc2ba9 #14766: Reflow the altered paragraphs. 2012-05-14 22:33:36 -04:00
R David Murray 089d4d4f7c #14766: Add correct algorithm for when a 'time' object is naive.
This patch also clarifies the definition of Naive and Aware.

Original patch by Greg Weller, I modified the first hunk
somewhat to make the exposition even clearer (I hope).
2012-05-14 22:32:44 -04:00
Sandro Tosi aa31d52b80 Issue #14448: add reference to IANA timezone database; thanks to Georg/Nick suggestions 2012-04-28 11:19:11 +02:00
Sandro Tosi 13c598b1d8 Issue #14448: mention pytz; patch by Andrew Svetlov 2012-04-24 19:43:33 +02:00
Sandro Tosi 8d38fcf5a9 Refer to 'time' and 'datetime' submodules; thanks to Erik Johnson from docs@
This is needed after the move to Sphinx 1.x and it's the same way 3.x braches
managed it.
2012-02-18 20:28:35 +01:00
Sandro Tosi 98ed08f24e update to new C roles and directives 2012-01-14 16:42:02 +01:00
Sandro Tosi 1f3b84f971 correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@ 2011-11-01 10:31:26 +01:00
Ezio Melotti f17e405eb7 #13076: fix links to datetime.time. 2011-10-02 12:22:13 +03:00
Senthil Kumaran 4c9721ad40 merge from 3.2 - Issue10403 - datetime module documentation changes based on review. 2011-07-17 19:10:10 +08:00
Senthil Kumaran 6f18b98782 Fix closes issue10403 - Let's not use members anymore. 2011-07-04 12:50:02 -07:00
Georg Brandl 35e7a8fa53 Merged revisions 85274 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85274 | georg.brandl | 2010-10-06 12:26:05 +0200 (Mi, 06 Okt 2010) | 1 line

  Fix errors found by "make suspicious".
........
2010-10-06 10:41:31 +00:00
Georg Brandl ad8ac86f3c Merged revisions 83328,83341 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83328 | raymond.hettinger | 2010-07-31 12:14:41 +0200 (Sa, 31 Jul 2010) | 1 line

  Document how to change OrderedDict update order from first to last.
........
  r83341 | georg.brandl | 2010-07-31 13:40:07 +0200 (Sa, 31 Jul 2010) | 1 line

  #9430: document timedelta str() and repr().
........
2010-08-01 19:21:26 +00:00
Alexander Belopolsky 094c53cf6e Fixed markup of tm_isdst attribute. 2010-06-09 17:08:11 +00:00
Georg Brandl 151973e1c8 #1436346: make it more obvious that timetuple[7] is yday. 2010-05-23 21:29:29 +00:00
Mark Dickinson 7000e9e01b Issue #8644: Improve accuracy of timedelta.total_seconds method.
(Backport of r80979 to py3k.)  Thanks Alexander Belopolsky.
2010-05-09 09:30:06 +00:00
Georg Brandl ce00cf2ce7 Update text for newest US DST regulation. The sample file already has the calculation right. 2010-03-21 09:58:36 +00:00
Georg Brandl 6cbb7f945a #7699: improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such. 2010-01-17 08:42:30 +00:00
Antoine Pitrou e236c3c8c2 Forgot to add a `versionadded` tag 2009-11-25 23:03:22 +00:00
Antoine Pitrou bcfaf8007d Issue #5788: `datetime.timedelta` objects get a new `total_seconds()` method returning
the total number of seconds in the duration.  Patch by Brian Quinlan.
2009-11-25 22:59:36 +00:00
Mark Dickinson 5b54432b1d Fix doc typo reported by Arfrever. 2009-11-03 16:26:14 +00:00
Skip Montanaro 6418577bb5 typo (space-o?) 2009-11-03 02:43:59 +00:00
Georg Brandl 5ffa146fde Fix markup. 2009-10-13 18:10:59 +00:00
Georg Brandl 592c58d356 #6946: fix duplicate index entries for datetime classes. 2009-09-19 10:42:34 +00:00
R. David Murray d56bab47f1 Clarify that datetime strftime does not produce leap seconds and datetime
strptime does not accept it in the strftime behavior section of the
datetime docs.

Closes issue 2568.
2009-04-02 04:34:04 +00:00
Brett Cannon 8aa2c6ce8e Minor spelling mistake in datetime docs. 2009-01-29 00:54:32 +00:00
Georg Brandl af9a97b245 #4923: clarify what was added. 2009-01-18 14:41:52 +00:00
Georg Brandl c62ef8b4d9 Remove trailing whitespace. 2009-01-03 20:55:06 +00:00
Georg Brandl 3f04303ba4 Test doctests in datetime docs. 2008-03-22 21:21:57 +00:00
Skip Montanaro fc070d2731 add %f format to datetime - issue 1158 2008-03-15 16:04:45 +00:00