Java Second timeToSeconds(String time)

Here you can find the source of timeToSeconds(String time)

Description

time To Seconds

License

Open Source License

Declaration

public static long timeToSeconds(String time) 

Method Source Code

//package com.java2s;

public class Main {

    public static long timeToSeconds(String time) {
        String[] strs = time.split(":");
        long seconds = Long.valueOf(strs[0]) * 60 * 60 * 1000
                + Long.valueOf(strs[1]) * 60 * 1000 + Long.valueOf(strs[2])
                * 1000;//  w w w . j  ava  2 s.com
        return seconds;
    }
}

Related

  1. timeStampSeconds()
  2. timeStringToSeconds(String input)
  3. timeStringToSeconds(String time)
  4. timeToSeconds(String in)
  5. timeToSeconds(String textTime)
  6. trimMiliSeconds(String time)
  7. validateSecond(int second)
  8. valueOfSecond(long time)