Name
easy:GetInfo_FileTime -- get the remote time of the retrieved document
Synopsis
timep = easy:GetInfo_FileTime()
Function
Returns the remote time of the retrieved document (in number of seconds since 1 jan 1970 in the GMT/UTC time zone). If you get -1, it can be because of many reasons (it might be unknown, the server might hide it or the server doesn't support the command that tells document time etc) and the time of the document is unknown.

You must tell libcurl to collect this information before the transfer is made, by using the #CURLOPT_FILETIME option to easy:SetOpt() or you will unconditionally get a -1 back.

Consider using #CURLINFO_FILETIME_T to be able to extract dates beyond the year 2038 on systems using 32 bit longs.

Inputs
none

Results
timep
output value

Show TOC