public static int unixTimestamp(){
  return (int)(System.currentTimeMillis() / 1000L);
}

public static int unixTimestamp ( ) { return ( int ) ( System . currentTimeMillis ( ) / 1000L ) ; }
get the seconds since 1970 - 01 - 01 00 : 00 : 00 utc . see http : / / dev . mysql . com / doc / refman / 5 . 1 / en / date - and - time - functions . html # function_unix - timestamp
