Skip to content

Commit 09ecd98

Browse files
committed
Add NaiveDatetimePicker to docs
1 parent 36add2b commit 09ecd98

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/source/examples/Widget List.ipynb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,26 @@
11571157
")"
11581158
]
11591159
},
1160+
{
1161+
"cell_type": "markdown",
1162+
"metadata": {},
1163+
"source": [
1164+
"## Naive picker\n",
1165+
"\n",
1166+
"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",
1167+
"\n",
1168+
"> Naive objects are easy to understand and to work with, at the cost of ignoring some aspects of reality."
1169+
]
1170+
},
1171+
{
1172+
"cell_type": "code",
1173+
"execution_count": null,
1174+
"metadata": {},
1175+
"outputs": [],
1176+
"source": [
1177+
"ipydatetime.NaiveDatetimePicker(description='Pick a Time')"
1178+
]
1179+
},
11601180
{
11611181
"cell_type": "markdown",
11621182
"metadata": {},

0 commit comments

Comments
 (0)