(date: Date)
| 1076 | } |
| 1077 | |
| 1078 | static fromDate(date: Date) { |
| 1079 | if (date instanceof Date) { |
| 1080 | const ts = new Timestamp(0, 0, true); |
| 1081 | ts._native = FIRTimestamp.timestampWithDate(date); |
| 1082 | return ts; |
| 1083 | } |
| 1084 | return null; |
| 1085 | } |
| 1086 | |
| 1087 | static fromMillis(milliseconds: number) { |
| 1088 | const ts = new Timestamp(0, 0, true); |