Sample code for 30+ languages & platforms
PureBasic

Example: Http.GenTimeStamp method

Demonstrates the GenTimeStamp method.

Chilkat PureBasic Downloads

PureBasic
IncludeFile "CkHttp.pb"

Procedure ChilkatExample()

    http.i = CkHttp::ckCreate()
    If http.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    ; Return current date/time in the following format: Day, DD Mon YYYY HH:MM:SS GMT
    timestamp.s = CkHttp::ckGenTimeStamp(http)
    Debug timestamp

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


    CkHttp::ckDispose(http)


    ProcedureReturn
EndProcedure