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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-11 UTC."],[],[],null,["# FirebaseFirestore Framework Reference\n\nTimestamp\n=========\n\n extension Timestamp: ../Protocols/ServerTimestampWrappable.html\n\n- `\n ``\n ``\n `\n\n ### [wrap(_:)](#/s:17FirebaseFirestore24ServerTimestampWrappableP4wrapyxSo12FIRTimestampCKFZ)\n\n `\n ` \n\n #### Declaration\n\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 ` \n\n #### Declaration\n\n Swift \n\n public static func unwrap(_ value: Timestamp) throws -\u003e Timestamp"]]