[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-27 UTC."],[],[],null,["# ServerValue | JavaScript SDK\n\n- [firebase](/docs/reference/js/v8/firebase).\n- [database](/docs/reference/js/v8/firebase.database).\n- ServerValue\n==================================================================================================================\n\nIndex\n-----\n\n### Variables\n\n- [TIMESTAMP](/docs/reference/js/v8/firebase.database.ServerValue#timestamp)\n\n### Functions\n\n- [increment](/docs/reference/js/v8/firebase.database.ServerValue#increment)\n\nVariables\n---------\n\n### TIMESTAMP\n\nTIMESTAMP: Object \nA placeholder value for auto-populating the current timestamp (time\nsince the Unix epoch, in milliseconds) as determined by the Firebase\nservers.\n\nexample\n:\n\n var sessionsRef = firebase.database().ref(\"sessions\");\n sessionsRef.push({\n startedAt: firebase.database.ServerValue.TIMESTAMP\n });\n\n\nFunctions\n---------\n\n### increment\n\n- increment ( delta : number ) : Object\n- Returns a placeholder value that can be used to atomically increment the\n current database value by the provided delta.\n\n #### Parameters\n\n -\n\n ##### delta: number\n\n the amount to modify the current value atomically.\n\n #### Returns Object\n\na placeholder value for modifying data atomically server-side."]]
A placeholder value for auto-populating the current timestamp (time since the Unix epoch, in milliseconds) as determined by the Firebase servers.
var sessionsRef = firebase.database().ref("sessions"); sessionsRef.push({ startedAt: firebase.database.ServerValue.TIMESTAMP });