Java Array From toArray(int time)

Here you can find the source of toArray(int time)

Description

to Array

License

Open Source License

Declaration

public static int[] toArray(int time) 

Method Source Code

//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*/
}

Related

  1. toArray(final T... array)
  2. toArray(final T... items)
  3. toArray(final Throwable throwable)
  4. toArray(float[] floatArray)
  5. toArray(int arg1)
  6. toArray(int value)
  7. toArray(int value, byte b[], int offset)
  8. toArray(int[] intArray)
  9. toArray(Iterable itr)