Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase timestamp in Unity #24

Closed
bacabrother opened this issue Dec 10, 2016 · 1 comment
Closed

Firebase timestamp in Unity #24

bacabrother opened this issue Dec 10, 2016 · 1 comment

Comments

@bacabrother
Copy link

I want to get the timestamp of realtime database of Firebase in Unity, is this possible?
And to create a child with a timestamp in realtime database? how do I do?

Thankz

@stewartmiles
Copy link
Contributor

You can use Firebase.Database.ServerValue.TimeStamp when writing to the Database
https://firebase.google.com/docs/reference/unity/class/firebase/database/server-value#timestamp

This stackoverflow post describes the general flow although with the Android API
http://stackoverflow.com/questions/37864974/how-to-use-the-firebase-server-timestamp-to-generate-date-created

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants