Static Method (Default implementation)soto-core 7.4.0SotoCore
string(from:)
DateCoders.swift:53static func string(from value: Date) -> String?
static func string(from value: Date) -> String?
s8SotoCore15DateFormatCoderPAAE6string4fromSSSg20FoundationEssentials0C0V_tFZ
What are these?3OZWP
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
struct Date
Date
represents a single point in time.
@frozen struct String
A Unicode string value that is a collection of characters.
static func string(from: CodableValue) -> String?
return value as a String. Used by query string and header values
static func decode(from decoder: Decoder) throws -> CodableValue
decode Date using DateFormatter
static func encode(value: CodableValue, to encoder: Encoder) throws
encode Date using DateFormatter