PureBasic
PureBasic
Example: Http.GenTimeStamp method
Demonstrates theGenTimeStamp method.
Chilkat PureBasic Downloads
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