I'd like to publish a contract that allows calls up until a certain time and date.
For example, say I want to allow anyone to call it for 1 year after publishing the contract to the blockchain, then after that time I want that method to no longer work when called.
How might this be implemented, ideally using a Smartpy example?