[[["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 2020-03-11 UTC."],[],[],null,["# Namespace: timestamp\n\n[rules](/docs/reference/rules/rules).timestamp\n==============================================\n\nnamespace static\n\nGlobally available timestamp functions. These functions are accessed\nusing the `timestamp.` prefix.\n\nMethods\n-------\n\n### date\n\nstatic\n\ndate(year, month, day) returns [rules.Timestamp](/docs/reference/rules/rules.Timestamp_)\n\nMake a timestamp from a year, month, and day.\n\n| #### Parameter ||\n|-------|-----------------------------------------------------------------------------------------|\n| year | [rules.Integer](/docs/reference/rules/rules.Integer) The year. Value must not be null. |\n| month | [rules.Integer](/docs/reference/rules/rules.Integer) The month. Value must not be null. |\n| day | [rules.Integer](/docs/reference/rules/rules.Integer) The day. Value must not be null. |\n\nReturns\n\n: `non-null `[rules.Timestamp](/docs/reference/rules/rules.Timestamp_) a timestamp.\n\n#### Example\n\n // Timestamp for 1984-01-02T00:00:00Z\n timestamp.date(1984, 1, 2);\n\n### value\n\nstatic\n\nvalue(epochMillis) returns [rules.Timestamp](/docs/reference/rules/rules.Timestamp_)\n\nMake a timestamp from an epoch time in milliseconds.\n\n| #### Parameter ||\n|-------------|----------------------------------------------------------------------------------------------------------|\n| epochMillis | [rules.Integer](/docs/reference/rules/rules.Integer) Time since the epoch in ms. Value must not be null. |\n\nReturns\n\n: `non-null `[rules.Timestamp](/docs/reference/rules/rules.Timestamp_) a timestamp."]]