Sample code for 30+ languages & platforms
Ruby

Example: Http.GenTimeStamp method

Demonstrates the GenTimeStamp method.

Chilkat Ruby Downloads

Ruby
require 'chilkat'

http = Chilkat::CkHttp.new()

# Return current date/time in the following format: Day, DD Mon YYYY HH:MM:SS GMT
timestamp = http.genTimeStamp()
print timestamp + "\n";

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