Hello,
On Fri, Jun 24, 2011 at 8:14 PM, Luis Krause Mantilla <lkrau...@shaw.ca>wrote:
> Before those changes, Date() and DateTime() returned
> exactly the same date type value.
>
> My guess here is that programmer's wanting to do "date math"
> should have even back then used Date() and not DateTime().
>
> My 2 cents.
>
My arguments:
Theoretical consideration:
The "date-time" data type is an extension of the "date" data type, and as
such it should support the operations available for "date" - in the same
manner as floating point numbers support mathematical operations available
for integer numbers
Prectical considerations:
- at this time there are more real and complex applications in production,
designed to manage tables including fields, which hold "date-time" values
needing the math available for "date" values
- other modern languages offer the instruments to do math with "date-time"
values - I mean incrementing years, months, days, hours, minutes, seconds,
milliseconds, weeks etc - see PHP DateTime class
Ella
>
> On 23-06-2011 13:04, Ella Stern wrote:
> > Hello,
> > More xHarbour users have reported, that they have problems, because
> expressions
> > like:
> > DateTime() - 1
> > are throwing run-time error.
> > The date-time variables are officially documented as variables returning
> data
> > type "D", and the users have code, which is now broken, because is
> incrementing
> > or decrementing variables, which now are returning data type "T" instead
> of "D".
> > Ella
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Simplify data backup and recovery for your virtual environment with
> vRanger.
> > Installation's a snap, and flexible recovery options mean your data is
> safe,
> > secure and there when you need it. Data protection magic?
> > Nope - It's vRanger. Get your free trial download today.
> > http://p.sf.net/sfu/quest-sfdev2dev
> >
> >
> >
> > _______________________________________________
> > xHarbour-developers mailing list
> > xHarbour-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>
> --
> Luis Krause Mantilla
> lkrausem at shaw dot ca
> luis_krause at hotmail dot com
> "May the Source be with GNU"
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense..
> http://p.sf.net/sfu/splunk-d2d-c1
> _______________________________________________
> xHarbour-developers mailing list
> xHarbour-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense..
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers