0

I am able to get the current time using the below code

import datetime
current_time = print(datetime.datetime.now())
Output : 2018-04-30 14:09:58.483829

I would however like to remove the decimal portion and only display 2018-04-30 14:09:58. How could I get this value. Thanks..

Aran-Fey
  • 39,665
  • 11
  • 104
  • 149
Taukheer
  • 1,091
  • 2
  • 13
  • 20

0 Answers0