IADate
public class IADate : ModelFieldProtocol
Internet Archive Date field
Parses the following formats:
2018-11-15T08:23:41Z, 2018-11-15T08:23:41-07:00, etc)Date
Date Time (2018-03-25 14:51:24)
Date
Date (2018-09-03)
2018)2018-09)[2018])c.a. 2018)Note: The approximate
and circa
formats do not have a representation that they’re approximate,
since the Date type has no way of representing it.
Example Usage
let dateField = IADate(fromString: "2018-11-15T08:23:41Z")
dateField.value => Date "2018-11-15T08:23:41Z"
-
Declaration
Swift
public typealias FieldType = Date -
Declaration
Swift
public var value: InternetArchive.IADate.FieldType? -
Declaration
Swift
required public init?(fromString string: String) -
Declaration
Swift
required public init(from: Decoder) throws
View on GitHub
IADate Class Reference