Sample code for 30+ languages & platforms
Swift

Example: Http.GenTimeStamp method

Demonstrates the GenTimeStamp method.

Chilkat Swift Downloads

Swift

func chilkatTest() {
    let http = CkoHttp()!

    // Return current date/time in the following format: Day, DD Mon YYYY HH:MM:SS GMT
    var timestamp: String? = http.genTimeStamp()
    print("\(timestamp!)")

    // Sample Output:
    // Thu, 21 Aug 2025 11:17:31 GMT

}