#1462 closed defect (fixed)
DateToIndex y fechas especiales
Reported by: | Pedro Gea | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | highest | Milestone: | Mantainance |
Component: | Kernel | Version: | 3.1 |
Severity: | blocker | Keywords: | |
Cc: |
Description
La función DateToIndex
no devuelve valores correctos para las fechas especiales.
Si vemos que:
// Date TheBegin -> fecha anterior a 1583 // Date TheEnd -> fecha posterior a 2499 Date IndexToDate(-115782); // -> TheBegin Date IndexToDate(-115781); // -> y1583m01d01 Date IndexToDate(219146); // -> y2499m12d31 Date IndexToDate(219147); // -> TheEnd
La salida de estas llamadas no son adecuadas:
Real DateToIndex(TheBegin); // -> 579012 pero debería ser -115782 Real DateToIndex(TheEnd); // -> 915000 pero debería ser 219147 Real DateToIndex(UnknownDate); // -> 0 pero debería ser ?
Change History (4)
comment:1 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 13 years ago by
comment:4 Changed 13 years ago by
Note: See
TracTickets for help on using
tickets.
(In [4290]) Fixes #1462