FirebaseFirestore Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
-
Declaration
Swift
public static func wrap(_ timestamp: Timestamp) throws -> Self
-
Declaration
Swift
public static func unwrap(_ value: Timestamp) throws -> Timestamp
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-11 UTC.
[null,null,["Last updated 2025-03-11 UTC."],[],[],null,["Timestamp \n\n extension Timestamp: ../Protocols/ServerTimestampWrappable.html\n\n- `\n ``\n ``\n `\n\n [wrap(_:)](#/s:17FirebaseFirestore24ServerTimestampWrappableP4wrapyxSo12FIRTimestampCKFZ)`\n ` \n\n Declaration \n Swift \n\n public static func wrap(_ timestamp: Timestamp) throws -\u003e Self\n\n- `\n ``\n ``\n `\n\n [unwrap(_:)](#/s:17FirebaseFirestore24ServerTimestampWrappableP6unwrapySo12FIRTimestampCxKFZ)`\n ` \n\n Declaration \n Swift \n\n public static func unwrap(_ value: Timestamp) throws -\u003e Timestamp"]]