How TOTP is generated?

TOTP is generated in mobile application like mAadhaar. However, the Client mobile device’s time should be in sync with IST time-zone.