SyntaxFix
Write A Post
Hire A Developer
Questions
If you're getting your timestamps from System.currentTimeMillis(), then your time variables should be longs.
System.currentTimeMillis()