MCPcopy Create free account
hub / github.com/NativeScript/firebase / fromDate

Method fromDate

packages/firebase-firestore/index.ios.ts:1078–1085  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

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);

Callers 1

invalid_field_pathMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected