Sphinx Site with PyScript¶
This page demos how PyScript can be used to make online documentation interactive inside of Sphinx. It is one of the demos created for the conference talk ‘Making Your Documentation Interactive with PyScript’ by Jeff Glass. See more details on that talk or the code for this site on GitHub.
The Datetime Module¶
The datetime module can be used to reference specific times, timespans, epochs, and calendar days.
Let’s explore the relationship between the datetime and timedelta classes. If we create a new datetime:
We can add a timedelta object to it to create another datetime object:
Or we can subtract one datetime from another to create a timedelta: