title: get current database sysdate using java instead of sql
body: <p>it is possible to get the current system date of oracle database using this query, </p>
  
  <pre><code>SELECT sysdate FROM dual;
  
  select (sysdate - to_date('1970-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS')) * 86400 unix_ts from dual;
  </code></pre>
  
  <p>which returns 19-DEC-12 and 1355949236.999999999999999999999999999998 format respectively. </p>
  
  <p><strong>what if i need it to get it from <em>java</em> perspective and in unix_time format?</strong> </p>
  
  <p>1) what is the library name?</p>
  
  <p>e.g.:</p>
  
  <pre><code>import java.util.Date;
  import java.text.SimpleDateFormat;
  import java.text.DateFormat;
  import com.portal.pcm.fields.TmFldRefundIndLastModDate;
  </code></pre>
  
  <p>2) how to call it?</p>
  
  <p>e.g.:</p>
  
  <pre><code>if(sysdate &gt;= a_date_which_is_in_unix_time_format){...}
  </code></pre>
  
  <p>Thank you.</p>