Hi Veusz People!

While developing a generic HDF5 import dialog for VEUSZ I stumbled over the 
internal datetime handling of VEUSZ.

In Veusz it is implemented the following:
dates.py:
"""
# we store dates as intervals in sec from this date as a float
offsetdate = datetime.datetime(2009, 01, 01, 0, 0, 0, 0)
"""

Why defining just an other datetime format?
Why not using e,g, egenix mx.Datetime [1] which is capable of dealing with a
wide magnitude of time scales from eons to femto seconds?

Or why not using the numpy implementation of datetime [2]?

[1] http://www.egenix.com/products/python/mxBase/mxDateTime/
[2] http://docs.scipy.org/doc/numpy-dev/reference/arrays.datetime.html

Datetime is a really huge problem.
I know that there are several other datetime implementations for Python out 
there.
And e.g. HDF5 still has not specified a datetime type.

IMHO it is time for a reasonable consolidation. 20% of the CPU time of my last 
import-Filter has been spend on date-time conversion.
Using Cython I was capable to minimize that impact. But personally I dream of a 
future where at least in Python code there is a
convergence in the usage of datetime types.

Since I do a mayor refactuing of VEUSZ anyway, I offer some time to find a way 
for implementing an other datetime handling.

@jeremy: Why did you used such a special format? Is this easy to substitute by 
an other?

Cheers

Volker

-- 
Dr. Volker Jaenisch
Geschäftsführer
 
Inqbus GmbH & Co. KG
Softwareentwicklung, Consulting & Hosting
Karl-Heine-Straße 99 | 04229 Leipzig | Deutschland

Telefon: +49 341 989758-54
Fax: +49 341 989758-79
E-Mail: [email protected]
Web: http://inqbus.de/

Persönlich haftende Gesellschafterin: Inqbus Management GmbH (Amtsgericht 
Leipzig, HRB 27350)
Vertretungsberechtigte Geschäftsführer: Maik Derstappen, Dr. Volker Jaenisch, 
Thomas Massmann, Markus Zapke-Gründemann

Registergericht: Amtsgericht Leipzig
Registernummer: HRA 16424

Umsatzsteuer-Identifikationsnummer: DE278744671


_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à