Functions

The following functions are available globally.

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

    Declaration

    Swift

    public func TimeIntervalSinceReferenceDate() -> TimeInterval
  • Returns the time interval between the current date and 1 January 1970, GMT

    Declaration

    Swift

    public func TimeIntervalSince1970() -> TimeInterval
  • Returns a sorted array of the collection as specified by the sort descriptor.

    Declaration

    Swift

    public func Sort<T: CollectionType, S: SortDescriptor where S.SortedType == T.Generator.Element>(collection: T, sortDescriptor: S) -> [T.Generator.Element]