voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 798 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [Timestamp](./firestore_.timestamp.md) > [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.