Here you can find the source of toArray(int time)
public static int[] toArray(int time)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] toArray(int time) { return new int[] { (int) Math.floor(time / 3600), (int) Math.floor((time / 60) - (Math.floor(time / 3600) * 60)), (int) Math.floor(time % 60) }; }/*from w w w . j a v a2s . c o m*/ }