The second one is known as one day cricket, where the match continues only for a day. The first one is known as test cricket which is played by two teams spanning over a period of 5 days.
The game of cricket has three variations.
Download How Many Types Of Cricket Is Played?