Code example for Time

Methods: toString

0
    public void save() { 
        DatabaseAdapter db = new DatabaseAdapter(this.context);
        ContentValues values = new ContentValues();
        values.put("canteen_id", this.canteenId);
        values.put("day", this.day);
        values.put("time_from", this.from.toString());
        values.put("time_to", this.to.toString());
        db.getDb().insertOrThrow("canteen_hours", null, values);
        db.close();
    } 
}