Hello i'm new to java and i'm trying to figure out how to use modulus to transform the current time in to seconds. this is what i have so far but i don't know where to go from here.
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class firstprogram{
public static void main(String[] args) {
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
System.out.println( sdf.format(cal.getTime()) );
}