Date

public struct Date: ByteValue, Equatable, Comparable, CustomStringConvertible, FoundationConvertible

Represents a point in time.

  • The time interval between the date and the reference date (1 January 2001, GMT).

    Declaration

    Swift

    public var timeIntervalSinceReferenceDate: TimeInterval
  • The time interval between the current date and 1 January 1970, GMT.

    Declaration

    Swift

    public var timeIntervalSince1970: TimeInterval
  • Returns the difference between two dates.

    Declaration

    Swift

    public func timeIntervalSinceDate(date: Date) -> TimeInterval
  • Undocumented

    Declaration

    Swift

    public struct Date: ByteValue, Equatable, Comparable, CustomStringConvertible, FoundationConvertible
  • Undocumented

    Declaration

    Swift

    public struct Date: ByteValue, Equatable, Comparable, CustomStringConvertible, FoundationConvertible
  • Creates the date with the current time.

    Declaration

    Swift

    public init()
  • Creates the date with the specified time interval since the reference date (1 January 2001, GMT).

    Declaration

    Swift

    public init(timeIntervalSinceReferenceDate timeInterval: TimeInterval)
  • Creates the date with the specified time interval since 1 January 1970, GMT.

    Declaration

    Swift

    public init(timeIntervalSince1970 timeInterval: TimeInterval)
  • Undocumented

    Declaration

    Swift

    public struct Date: ByteValue, Equatable, Comparable, CustomStringConvertible, FoundationConvertible
  • Undocumented

    Declaration

    Swift

    public struct Date: ByteValue, Equatable, Comparable, CustomStringConvertible, FoundationConvertible