Der Rosenkavalier
The story is supposed to be happening in Vienna in the time of  the Empress Maria Theresa (mid to late 18th century).  The music and the words deliberately show the elegant life of aristocratic society of that time.  For example: the title of the opera is about the silver rose which traditionally was sent by a bridegroom to his bride and was brought by a knight (the Knight of the Rose).