0

is There datetime in code playground!?

19th Sep 2016, 6:05 PM
fulvio
4 Réponses
27th May 2017, 8:50 PM
Leigh E. O.
Leigh E. O. - avatar
+ 1
yep. just import it, to use it in your program.
19th Sep 2016, 7:14 PM
Amarie
+ 1
depends on what you want to do with this module. if you just want to use a special method it's enough when you just import this method: >>> from datetime import method In most cases you import just the module with: >>>import datetime Then you can call the functions and methods with datetime.method here is the documentation about datetime: https://docs.python.org/3.5/library/datetime.html
20th Sep 2016, 1:18 PM
Amarie
0
i wrote: from datetime import datetime: is this correct!?
19th Sep 2016, 10:40 PM
fulvio