Alexandre Zani <alexandre.z...@gmail.com> added the comment:

I think the easiest and most intuitive approach is to simply define timestamp() 
as being the reverse of fromtimestamp(). Don't worry about leap seconds and all 
that stuff.

If non-1970 epochs are a concern, this could be renamed to posix_timestamp or 
some such with perhaps a generic timestamp function that takes both a time and 
epoch.

But let's not let such a useful function not happen just because it won't solve 
everyone's problem.

----------
nosy: +Alexandre.Zani

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14908>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to