Static Method (Default implementation)soto-core 7.4.0SotoCore
encode(value:to:)
encode Date using DateFormatter
static func encode(value: CodableValue, to encoder: Encoder) throws
encode Date using DateFormatter
static func encode(value: CodableValue, to encoder: Encoder) throws
s8SotoCore15DateFormatCoderPAAE6encode5value2toy20FoundationEssentials0C0V_s7Encoder_ptKFZ
What are these?80UP3
import SotoCore
protocol DateFormatCoder : CustomDecoder, CustomEncoder where Self.CodableValue == Date
Protocol for time stamp coders that use a DateFormatter. Use this to enforce the timestamp format we require, or to set the timestamp format output
associatedtype CodableValue : Sendable
protocol Encoder
A type that can encode values into a native format for external representation.
static func encode(value: CodableValue, to encoder: Encoder) throws
encode CodableValue with supplied encoder
static func decode(from decoder: Decoder) throws -> CodableValue
decode Date using DateFormatter
static func string(from value: Date) -> String?