The appearance of Ditto is not time-dependent. It can spawn at any time during the day. Following the strategies mentioned in this article will increase your chances of encountering it, regardless of the time.