Sample code for 30+ languages & platforms
C

Example: Http.GenTimeStamp method

Demonstrates the GenTimeStamp method.

Chilkat C Downloads

C
#include <C_CkHttp.h>

void ChilkatSample(void)
    {
    HCkHttp http;
    const char *timestamp;

    http = CkHttp_Create();

    //  Return current date/time in the following format: Day, DD Mon YYYY HH:MM:SS GMT
    timestamp = CkHttp_genTimeStamp(http);
    printf("%s\n",timestamp);

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


    CkHttp_Dispose(http);

    }