26 Jul
2007
26 Jul
'07
4:59 p.m.
On Thu, Jul 26, 2007 at 05:28:50PM +0200, Philippe Mondon wrote:
//long returnVal = tduration.total_milliseconds(); long returnVal = tperiod.length().total_milliseconds();
Unfortunately, it gives only a 8 digit number (in java you've got a 13 digit number when using currentTimeMillis) so I suspect that it does not give a duration since Jan the 1st 1970 (which is java reference).
Integer overflow: long is 32 bits on 32-bit machine, and 13 digits does *not* fit into 32 bits. ("long" is incidentally 64-bit in Java).