public void putTime(String key, Time t)
    {
        try
        {
            byte[] ba = Utils.object2Bytes(t);
            prefs.putByteArray(key, ba);
        } catch (IOException ex)
        {
            Logger.getLogger(TimerPreferences.class.getName()).log(Level.SEVERE, null, ex);
        }
    }