[Python] Timestamp firebase in python - argument in firebase.put()

Discussão em 'Python' iniciado por Stack, Setembro 25, 2024.

  1. Stack

    Stack Membro Participativo

    Im new to python and trying to insert the date/time into my firebase.put Im unsure of what this should be and would appreciate some help. Ive tried this, strip() and a couple other unsuccessful things. Please help! Thank you

    from firebase import firebase
    import time
    import datetime

    whattime = datetime.datetime.now()
    firebase = firebase.FirebaseApplication('my_firebase_link',None)

    result = firebase.put('/user',str(whattime),'testing')

    Continue reading...

Compartilhe esta Página