Android Second Format currentSeconds()

Here you can find the source of currentSeconds()

Description

current Seconds

License

Apache License

Declaration

public static long currentSeconds() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {
    public static long currentSeconds() {

        Calendar c = Calendar.getInstance();
        long mseconds = c.getTimeInMillis();
        return mseconds / 1000;
    }/*from   w w w.  j a  va  2 s.c om*/
}

Related

  1. formatIntoHHMMSS(int secsIn)
  2. getTimeFormattedFromSeconds(int seconds)
  3. formatElapsedTime(long elapsedSeconds)
  4. formatElapsedTime(StringBuilder recycle, long elapsedSeconds)
  5. formatElapsedTime(StringBuilder recycle, String format, long minutes, long seconds)
  6. getInXSeconds(int seconds)
  7. toReadableTime(Context aContext, int aSeconds, boolean aShowSeconds)