python uniqid based on current time code example Example: python using datetime as id import datetime datetime.datetime.now().strftime('%Y%m%d%H%M%S')