Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Dates and Times in Python (2014) Dates and Times now() and .replace()

dates and time in python

Import the datetime library.

cant pass help

dt.py
dir(datetime)

3 Answers

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 28,720 Points

I think what you are looking for is this:

import datetime

thank you....im really dumb i see

Jeff Muday
Jeff Muday
Treehouse Moderator 28,720 Points

You should never feel bad about asking questions of fellow students and using Google to search for answers. Most successful developers will rarely remember exact syntax, but will know general concepts and recall from experience what can be done.

We can always do a web search and find someone else who has done it before (and learn from them)!

boi
boi
14,242 Points

You need to lay off the medicinal weed while coding.

P.S: You got almost 9000 points, and you started roughly 2 months ago, either you are superhuman (maybe knowledgeable) or are going extremely fast without properly holding on to concepts. In the latter case, I highly discourage that, you need to focus on effort, not pace. It explains why you could not complete the first line of code, one of the most basic challenges.

A learner to another learner, keep it easy and strong.