Simulating Dates and Times

Is there any easy way to simulate the date and time while I’m developing?

I’m leaning on playdate.getTime() and want to test things properly to be sure my logic works well.

Changing times on the device isn’t handy and updating the date on my Mac for the simulator isn’t ideal. It would be rad if I could pass a time and date stamp to the simulator for testing. If that can’t be done I’d appreciate any best practices for testing time based experiences.


I believe GetTime returns a table of days, hours, minutes etc. You could create your own table where you specify the day, hour, etc that you want to test, then calculate the offset between that time and the current time when you start the app, and add that offset to the current time whenever you run GetTime.

1 Like