Code example for TimeZone

Methods: setDefault

0
 
    private void setTimeZone() { 
 
        timeZone = TimeZone.getTimeZone("Asia/Irkutsk");
 
        TimeZone.setDefault(timeZone);
    } 
 
    private Timestamp getCurrentCurs() throws Exception {
 
        long idCurrency = 134;
        long idSite     = 23;
        String sql_ =
            "select max(f.DATE_CHANGE) LAST_DATE " 
            + "from  CASH_CURR_VALUE f, CASH_CURRENCY b " 
            + "where f.ID_CURRENCY=b.ID_CURRENCY and b.ID_SITE=? and f.ID_CURRENCY=? "; 
        PreparedStatement ps    = null;
        ResultSet         rs    = null;
        Timestamp         stamp = null;
 
Contextual code suggestions in your IDE  Get Codota for Java