+
+
+

Date

+
+
+
struct Date : ReferenceConvertible, Comparable, Equatable
+ +
+
+ +
+
+
+
    +
  • +
    + + + + yearAgo + +
    +
    +
    +
    +
    +
    +

    Returns date one year before current date.

    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    public static let yearAgo: Date =
    + +
    +
    +
    +
    +
  • +
  • +
    + + + + nextYear + +
    +
    +
    +
    +
    +
    +

    Returns date one year after current date.

    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    public static let nextYear: Date =
    + +
    +
    +
    +
    +
  • +
+
+
+
+ +