There is an a slightly different way to look at this. In Indian scriptures, it is said that you are born because of the some bad deeds that you have done. You are born on this planet to suffer.
Suffering is the default. So if you are happy sometimes, consider it as a blessing. A more positive approach to misery.
Valuing the good parts and considering suffering as default.
Again, all bullshit but still better bullshit :)