myusuf3 / delorean

Delorean: Time Travel Made Easy
http://delorean.rtfd.org/
MIT License
1.84k stars 128 forks source link

naivemode param on delorean.parse for options on how to handle naive tim... #54

Closed rwarren closed 9 years ago

rwarren commented 9 years ago

Addresses issue #53. The issue has a full doctest-style explanation of how it works.

I added a naivemode arg to delorean.parse to provide some options. I'm not sure if this is how you want to go, but it definitely solves my initial problem.

The default value for the param has been set so that existing code runs exactly the same as before. Behaviour only changes if/when you want it to. Also, returning a naive datetime (in the case of naivemode=='naive' is consistent with what Delorean.naive() does.

myusuf3 commented 9 years ago

@rwarren you will also need to update documentation accordingly. :)

myusuf3 commented 9 years ago

oh lastly, thanks for your legit contribution. @rwarren