The other is that I've grown to think that the abstraction commonly used, seeing date/time as something like (year, month, day, hour, minute, second, subsecond, timezone) is in itself not really suitable, because the derived interfaces (like accessing and modifying days, months etc. That can be worked out over time, not that big of a problem, just inconvenient. One thing is that some libraries bring their own not-really-different-just-different-enough-to-break-things date/time types to the table. I think there are two separate issues here. I prefer to think in terms of the astronomy - it's not actually a different time anywhere else, it's just that the sun is at a different position relative to the rest of the earth (and thus, ones faraway teammates and loved ones).Īnyway, thanks for yet another set of interesting ideas. It looks like, in order to get this (arguably expected) object, I need to take the resulting MayaDT epoch and run its `datetime` method, passing naive=True?Īnd I also see that _tz can only ever be pytz.timezone('UTC') - is this the result of some belief that timezones are illusions or something? :-)įor a while, I have kinda thought that timezones foment a confused mental model of time and teamwork. If I just see that line casually, I think I expect to get a Date and for it to be the 7th. This returning an object representing a DateTime on the 6th (in UTC time) strikes me as perhaps "not for humans." > rand_day = maya.when('', timezone='US/Eastern') It is espacially true for him, because he now have such a good rep in the Python community that everything he does get under the spotlight. But I don't think it's a good call on his part here. I understand all that, and I respect Kenneth as a professional. I know that's it's also more fun to roll your own. Now I know it's way harder to contribute to something than roll you own. But when you DO have good existing projects, then those are the bread and butter of their success. Now if you don't have any very good alternatives, it's good : you want to steal that from them. 3rd party tutorials, snippets and examples installs (and hence testing on the field) If you contribute to any open source project, you quickly learn code is only a small (yet important) part of the effort.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |