The Sphinx

The riddle of the sphinx:

In the morning I have four legs.
In the afternoon I have two legs.
In the evening I have three legs.
What am I?