Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
now()
#1
is there a way to do this


from datetime import datetime as dt
now=dt.now
in one statement?

i tried these and they did not work:


from datetime import datetime.now as now
from datetime.datetime import now
so i am looking for a working alternate.
likes this post
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
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