compare time.time() & System.Currenttimemillis()
Note the differences: 
time.time() returns the time in seconds since the epoch as a floating point number, according to the timezone defined.
System.currentTimeMillis() returns the time in milliseconds since the epoch as a long number, in UTC timezone.
So to compare the two you need to:

Convert the python time to UTC, e.g. by adding time.timezone to the result of time.time()
Convert the adjusted python time from seconds to milliseconds by multiplying by 1000 and rounding/ceil/floor the result.

After that you have both times in the same unit and timezone.
I am working on multiple projects in python and java. I have a timestamp from python project as time.time(). I need to compare it with current timestamp in my java project as System.Currenttimemillis(). How to compare time in time.time()  and System.Currenttimemillis()?