Java Unix time unixtime()

Here you can find the source of unixtime()

Description

Calculates "unix time", ie seconds after 1970

License

Open Source License

Return

The number of seconds since 1970

Declaration

public static long unixtime() 

Method Source Code

//package com.java2s;

public class Main {
    /**/*  w ww . j  a  v  a  2  s  . co  m*/
     * Calculates "unix time", ie seconds after 1970
     * 
     * @return The number of seconds since 1970
     */
    public static long unixtime() {
        return System.currentTimeMillis() / 1000L;
    }
}

Related

  1. getUnixTime(Date date)
  2. getUnixTimeByDate(Date date)
  3. unix2afpTime(long ut)
  4. unixDateToString(int date)
  5. unixTime()
  6. unixTimestamp(int year, int month, int day, int hour, int minute, int second)
  7. unixTimestampToString(long timestamp)
  8. unixtimeToDate(long time)
  9. unixTimeToString(int time)