Android Time Get getUnixTime()

Here you can find the source of getUnixTime()

Description

get Unix Time

Declaration

static long getUnixTime() 

Method Source Code

//package com.java2s;

public class Main {
    static long getUnixTime() {
        return (long) (System.currentTimeMillis() / 1000);
    }//from ww w  .ja v  a 2 s  . c om
}

Related

  1. getTime1()
  2. getTimeInMillis()
  3. getTimestamp()
  4. getUTCTime()
  5. getUnixTime()