I'm using System.currentTimeMillis() for getting seconds since the epoch. This is an example.
long enable_beacon_timestamp = System.currentTimeMillis()/1000;
println(enable_beacon_timestamp);
println(int(enable_beacon_timestamp));
enable_beacon(int(enable_beacon_timestamp));
And the output gives:
>>1424876956
>>1424876928
So the problem is that there is a mismatch in cast value. What I want is to get the first output the same as the integer.
Can you provide some background why this happen?.