Java Unix time unixTime()

Here you can find the source of unixTime()

Description

unix Time

License

Apache License

Declaration

public static int unixTime() 

Method Source Code

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

public class Main {

    public static int unixTime() {
        return (int) (System.currentTimeMillis() / 1000);
    }/*from ww w .  j  av  a  2s.c  o  m*/
}

Related

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