> The difference between Harbour and xHarbour can be seen in this code:
>       proc main()
>          local dVal, tVal
>          dVal := date()
>          tVal := dVal + {^ 02:00 }  // {^ 02:00 } timestamp
>                                     // constant, see below
>          ? valtype(dVal), valtype(tVal)
>          ? dVal; ? tVal
>          dVal += 1.125  // In Clipper and Harbour it increases
>                         // date value by 1
>          tVal += 1.25   // it it increases timestamp value by 1 day
>                         // and 6 hours
>          ? dVal; ? tVal
>          ? dVal = tVal  // In Harbour .T. because date part is the same
>          ? date() + 0.25, date() + 0.001 == date()
>       return
> Harbour shows:
>       D T
>       05/20/09
>       05/20/09 02:00:00.000
>       05/21/09
>       05/21/09 08:00:00.000
>       .T.
>       05/20/09 .T.
> 
> and xHarbour shows:
>       D D
>       05/20/09
>       06/25/21 02:00:00.00
>       05/21/09 03:00:00.00
>       06/26/21 08:00:00.00
>       .F.
>       05/20/09 06:00:00.00 .F.
> 
> Recently to xHarbour "T" type was introduced with some of Harbour TIMESTAMP
> code in RDD but VM was not modified to follow Harbour/RDD modifications.
> So now some parts of xHarbour are not synced and I cannot say what is the
> goal of DATETIME values and their arithmetic in xHarbour VM for the future.

The diferrences have been resolved now.

Andi


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to