Here you can find the source of getRemainingSeconds(final long ms)
public static long getRemainingSeconds(final long ms)
//package com.java2s; //License from project: Open Source License public class Main { public static long getRemainingSeconds(final long ms) { return ms / 1000 % 60; }//w w w .ja v a2s .c o m }