Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
now()
#5
Quote:in one statement?
Yeah can hack something together,
but something like this has not so much purpose outside the code golf world.
>>> __import__('datetime').datetime.now()
datetime.datetime(2016, 10, 6, 14, 54, 22, 463219)
Reply


Messages In This Thread
now() - by Skaperen - Oct-06-2016, 05:44 AM
RE: now() - by micseydel - Oct-06-2016, 06:05 AM
RE: now() - by Ofnuts - Oct-06-2016, 09:11 AM
RE: now() - by metulburr - Oct-06-2016, 12:46 PM
RE: now() - by snippsat - Oct-06-2016, 12:58 PM
RE: now() - by wavic - Oct-06-2016, 05:00 PM
RE: now() - by Ofnuts - Oct-06-2016, 07:03 PM
RE: now() - by wavic - Oct-06-2016, 07:15 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020