//=time() ?>
FYI for those who want their sanity, if you try to catch a Cherrim (via shaking trees) during the daytime for some reason it's glitched and will never capture. Must start the encounter at night. Just wasted like 30 minutes trying.