Date

public extension Date
  • init: Initialise a Date from a FREObject.

    let d = Date(argv[0])
    

    Declaration

    Swift

    init?(_ freObject: FREObject?)

    Parameters

    freObject

    FREObject which is of AS3 type Date.

    Return Value

    Date?

  • toFREObject: Converts a Date into a FREObject of AS3 type Date.

    let fre = Date().toFREObject()
    

    Declaration

    Swift

    func toFREObject() -> FREObject?

    Return Value

    FREObject