(timestamp: FIRTimestamp)
| 1067 | } |
| 1068 | |
| 1069 | static fromNative(timestamp: FIRTimestamp) { |
| 1070 | if (timestamp instanceof FIRTimestamp) { |
| 1071 | const ts = new Timestamp(0, 0, true); |
| 1072 | ts._native = timestamp; |
| 1073 | return ts; |
| 1074 | } |
| 1075 | return null; |
| 1076 | } |
| 1077 | |
| 1078 | static fromDate(date: Date) { |
| 1079 | if (date instanceof Date) { |
nothing calls this directly
no outgoing calls
no test coverage detected