Hello,
The below code throws RTE when trying to add a fractional number to a
DateTime value:
function main()
local dDateTime := "201111091230"
? "{^ 2011/11/09 12:30:00 }+1"
? {^ 2011/11/09 12:30:00 }+1
? "{^ 2011/11/09 12:30:00 }+1/24"
? {^ 2011/11/09 12:30:00 }+1/24 // error
? "{^ 2011/11/09 12:30:00 }+1/(24*60)"
? {^ 2011/11/09 12:30:00 }+1/(24*60) // error
? "ddatetime"
? dDateTime
? "ddateTime + 1/(24*60)"
dDateTime := dDateTime + 1/(24*60) // error
? dDateTime
wait "end..."
return nil
Here is the related error LOG:
|{^ 2011/11/09 12:30:00
}+1 |
|11/10/11
12:30:00.000 |
|{^ 2011/11/09 12:30:00
}+1/24 |
|Error BASE/1081 Argument error: + Arguments: ( [ 1] = Type: T Val:
201111091230|
|00.000 [ 2] = Type: N Val:
0.04) |
|
|
|Error at ...: MAIN(9) in Module:
test.prg |
Ella
------------------------------------------------------------------------------
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