Code example for TimeZone

Methods: getID

0
    	editor.putLong(PREF_SYNCREPEAT,syncRepeat);
    	editor.commit();
    } 
     
    public String getTimezone(){
    	return prefs.getString(PREF_TIMEZONE,def_timezone.getID());
    } 
     
    public void setTimezone(String timezone){
    	Editor editor=prefs.edit();
    	editor.putString(PREF_TIMEZONE,timezone);
    	editor.commit();
    } 
 
    public long getLastSyncServer(){ 
    	return prefs.getLong(PREF_LASTSYNCSERVER,def_lastSyncServer);
    } 
     
    public void setLastSyncServer(long lastSyncServer){
    	Editor editor=prefs.edit();
Connect your IDE to all the code out there  Get Codota for Java