(In the wild) Mostly if its sunny, It will lay on a rock for the rest of the day. (In captivity) If its a pet, buy a lamp for the animal and it will rest under the lamp.
Certain bats and small birds are not completely warm blooded. Their body temperature drops while they sleep, allowing them to survive when they cannot keep eating enough to maintain their normal body...