Sample code for 30+ languages & platforms
Zig

Example: Http.GenTimeStamp method

Demonstrates the GenTimeStamp method.

Chilkat Zig Downloads

Zig
const std = @import("std");
const chilkat = @import("chilkat");

pub fn main(init: std.process.Init) !void {
    const alloc = init.arena.allocator();

    const http = try chilkat.Http.init();
    defer http.deinit();

    // Return current date/time in the following format: Day, DD Mon YYYY HH:MM:SS GMT
    const timestamp = try http.genTimeStamp(alloc);
    std.debug.print("{s}\n", .{timestamp});

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