UNPKG

voluptasmollitia

Version:
27 lines (15 loc) 798 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Timestamp](./firestore_.timestamp.md) &gt; [fromMillis](./firestore_.timestamp.frommillis.md) ## Timestamp.fromMillis() method Creates a new timestamp from the given number of milliseconds. <b>Signature:</b> ```typescript static fromMillis(milliseconds: number): Timestamp; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | milliseconds | number | Number of milliseconds since Unix epoch 1970-01-01T00:00:00Z. | <b>Returns:</b> [Timestamp](./firestore_.timestamp.md) A new `Timestamp` representing the same point in time as the given number of milliseconds.