Skip to content

Commit

Permalink
Add NaiveDatetimePicker to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vidartf committed Sep 2, 2022
1 parent 36add2b commit 09ecd98
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/source/examples/Widget List.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,26 @@
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Naive picker\n",
"\n",
"In some cases you might want to be able to pick naive datetime objects, i.e. timezone-unaware datetimes. To quote the Python 3 docs:\n",
"\n",
"> Naive objects are easy to understand and to work with, at the cost of ignoring some aspects of reality."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"ipydatetime.NaiveDatetimePicker(description='Pick a Time')"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 09ecd98

Please sign in to comment.