There's a warranty period of 2 years, starting with the date of purchase. In the case of a defect, during the first 6 months, the seller will have to prove that the goods he sold were in good working condition at the time of purchase. He has to prove that the issue, which led to the defect, wasn't there at the time.
After the first 6 months this gets turned around and the buyer has to prove that the cause of a defect was in fact there at the time of purchase.
As this would be hard to prove, and especially expensive, no side would try to prove anything. In the first 6 months the seller would send out a second item and, for the following 18 months, the buyer would repair the goods on his own or simply throw them away.
In Germany for example we do have two different words for warranty / guarantee. The one is set by law and has to be 24 months for new stuff or 12 months for used things (if sold by a business). This is something you'd always get and it's something between the seller / shop and the customer / buyer.
The other thing is purely voluntary, can be given as long as "lifetime" / 25 years, and will be given to the customer, by the manufacturer.