func dateFormatted()

in Packages/ClientRuntime/Sources/Serialization/SerializationUtils/TimestampWrapper.swift [19:29]


    func dateFormatted() -> String {
        switch format {
        case .epochSeconds:
            let secondsWithoutFractional = Int(date.timeIntervalSince1970)
            return "\(secondsWithoutFractional)"
        case .dateTime:
            return date.iso8601WithoutFractionalSeconds()
        case .httpDate:
            return date.rfc5322()
        }
    }