Daniel Ockeloen <[EMAIL PROTECTED]> wrote: > Would it not be possible to make the timetag autodetect size ? so that if we > defined a integer (as is done now) it > will parse as it does now but if we define a long it will autoswitch to a > new (still to be implemented) decoder that > has a much wider range ?
Yes, I think this is possible. I think the justification for the exstincence of a time-tag (it seems rather un-specific to MMBase) is in the fact that it _is_ speficic to MMBase in the sense that it knows how MMBase stores dates. So, I'd encourage using the time-tag, because your site then will be resistent if we change the way MMBase does that, because such a change will then of course be accompanied with a corresponding change in the time-tag. Indeed your suggestion of autodetecting the type of the variable to disposal is perhaps also feasible. But basicly I think the solution is that a 'datettime' field type must be created which then of course will depend on the datetime types which are supported by most databases, and in Java be presented by a 'Date' object. We should step of the concept of storing date-time in an integer type. Michiel -- Michiel Meeuwissen Mediapark, C 107 tel. +31 (0)35 6772979
