Default stamina on/off

hello, is there any app that will turn on stamina at night and turn it off automatlicly in the morning ???