Android Time Get getUnixTime()

Here you can find the source of getUnixTime()

Description

get Unix Time

License

Open Source License

Declaration

public static long getUnixTime() 

Method Source Code

//package com.java2s;

import java.util.Date;

public class Main {
    public static long getUnixTime() {
        return (new Date()).getTime() / 1000;
    }//ww  w  .  jav a2s .c om
}

Related

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