René's URL Explorer Experiment


Title: [3.8] bpo-36960: Overhaul datetime documentation (GH-13410) by miss-islington · Pull Request #16056 · python/cpython · GitHub

Open Graph Title: [3.8] bpo-36960: Overhaul datetime documentation (GH-13410) by miss-islington · Pull Request #16056 · python/cpython

X Title: [3.8] bpo-36960: Overhaul datetime documentation (GH-13410) by miss-islington · Pull Request #16056 · python/cpython

Description: This is a restructuring of the datetime documentation to hopefully make them more user-friendly and approachable to new users without losing any of the detail. Changes include: Creating dedicated subsections for some concepts such as: "Constants" "Naive vs Aware" "Determining if an Object is Aware" Give 'naive vs aware' its own subsection Give 'constants' their own subsection Overhauling the strftime-strptime section by: Breaking it into logical, linkable, and digestable parts Adding a high-level comparison table Moving the technical detail to bottom: readers come to this section primarily to remind themselves to things: How do I write the format code for X? strptime/strftime: which one is which again? Touching up fromisoformat + isoformat sections by: Revising fromisoformat + isoformat for date, time, and datetime Adding basic examples Enforcing consistency about putting formats (i.e. HH:MM) in double backticks. This was previously done in some places but not all Putting long 'supported formats', on their own line to improve readability Moving the 'seealso' section to the top and add a link to dateutil Rationale: This doesn't really belong nested under the 'constants' section. Let readers know right away that datetime is one of several related tools. Moving common features of several types into one place: Previously, each type went out of its way to note separately that it was hashable and picklable. These can be brought into one single place that is more prominent. Reducing some verbose explanations to improve readability Breaking up long paragraphs into digestable chunks Displaying longer "equivalent to" examples, as short code blocks Using the dot notation for datetime/time classes: Use :class:.time and :class:.datetime rather than :class:time and :class:datetime; otherwise, the generated links will route to the respective modules, not classes. Rewording the tzinfo class description The top paragraph should get straight to the point of telling the reader what subclasses of tzinfo do. Previously, that was hidden in a later paragraph. Adding a note on .today() versus .now() Rearranging and expanding example blocks, including: Moved long, multiline inline examples to standalone examples Simplified the example block for timedelta arithmetic: Broke the example into two logical sections: normalization/parameter 'merging' timedelta arithmetic Reduced the complexity of the some of the examples. Show reasonable, real-world uses cases that are easy to follow along with and progres in difficult slightly. Broke up the example sections for date and datetime sections by putting the easy examples first, progressing to more esoteric situations and breaking it up into logical sections based on what the methods are doing at a high level. Simplified the KabulTz example: Put the class definition itself into a non-REPL block since there is no interactive output involved there Briefly explained what's happening before launching into the code Broke the example section into visually separate chunks Various whitespace, formatting, style and grammar fixes including: Consistently using backctics for 'date_string' formats Consistently using one space after periods. Consistently using bold for vocab terms Consistently using italics when referring to params: See https://devguide.python.org/documenting/GH-id4 Using '::' to lead into code blocks Per https://devguide.python.org/documenting/GH-source-code, this will let the reader use the 'expand/collapse' top-right button for REPL blocks to hide or show the prompt. Using consistent captialization schemes Removing use of the default role Put 'example' blocks in Markdown subsections This is a combination of 66 commits. See bpo-36960: https://bugs.python.org/issue36960 (cherry picked from commit 3fb1363) Co-authored-by: Brad brad.solomon.1124@gmail.com

Open Graph Description: This is a restructuring of the datetime documentation to hopefully make them more user-friendly and approachable to new users without losing any of the detail. Changes include: Creating dedicated ...

X Description: This is a restructuring of the datetime documentation to hopefully make them more user-friendly and approachable to new users without losing any of the detail. Changes include: Creating dedicated ...

Opengraph URL: https://github.com/python/cpython/pull/16056

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4e85f3b9-d1e3-8ef4-c36d-1906facf96ae
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8532:165D8F:FC123C:15F4B66:6A4FEB1C
html-safe-nonceebed482427c29ea52f929ac0da206510a8c2026cc35c9dd00c15268a1865ac9b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTMyOjE2NUQ4RjpGQzEyM0M6MTVGNEI2Njo2QTRGRUIxQyIsInZpc2l0b3JfaWQiOiIyNDIwNzMwMTIxOTkwMTcxNDIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfde49cb6d2f064d5cc9176c04563530803bb30e534f2ccd7d3039b0bf4a563bc
hovercard-subject-tagpull_request:316933358
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/16056/files
twitter:imagehttps://avatars.githubusercontent.com/u/31488909?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/31488909?s=400&v=4
og:image:altThis is a restructuring of the datetime documentation to hopefully make them more user-friendly and approachable to new users without losing any of the detail. Changes include: Creating dedicated ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef7e270be010aa4de2871991025fbb97f3afe2bcb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/16056/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F16056%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F16056%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/16056/files
Reloadhttps://github.com/python/cpython/pull/16056/files
Reloadhttps://github.com/python/cpython/pull/16056/files
Please reload this pagehttps://github.com/python/cpython/pull/16056/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/16056/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
miss-islingtonhttps://github.com/miss-islington
python:3.8https://github.com/python/cpython/tree/3.8
miss-islington:backport-3fb1363-3.8https://github.com/miss-islington/cpython/tree/backport-3fb1363-3.8
Conversation 1 https://github.com/python/cpython/pull/16056
Commits 1 https://github.com/python/cpython/pull/16056/commits
Checks 0 https://github.com/python/cpython/pull/16056/checks
Files changed https://github.com/python/cpython/pull/16056/files
Please reload this pagehttps://github.com/python/cpython/pull/16056/files
[3.8] bpo-36960: Overhaul datetime documentation (GH-13410) https://github.com/python/cpython/pull/16056/files#top
Show all changes 1 commit https://github.com/python/cpython/pull/16056/files
6998a70 Overhaul datetime documentation (GH-13410) bsolomon1124 Sep 11, 2019 https://github.com/python/cpython/pull/16056/commits/6998a701ac1e3c396912d8360a89988012e48604
Clear filters https://github.com/python/cpython/pull/16056/files
Please reload this pagehttps://github.com/python/cpython/pull/16056/files
Please reload this pagehttps://github.com/python/cpython/pull/16056/files
datetime.rst https://github.com/python/cpython/pull/16056/files#diff-591e6aa401ebcd90f71f28b517b3d4437ba293920787df9ed06e037af0b07175
2019-05-18-16-25-44.bpo-36960.xEKHXj.rst https://github.com/python/cpython/pull/16056/files#diff-ebc933672560718b5cd1aeb0a292e542090c32a633a7af2476b121b2938fc3fb
Please reload this pagehttps://github.com/python/cpython/pull/16056/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.