public static String gitTime(Date time){
  long t=time.getTime() / 1000;
  return Long.toString(t);
}

public static String gitTime ( Date time ) { long t = time . getTime ( ) / 1000 ; return Long . toString ( t ) ; }
get git time ( unix time ) basing on the date object
