Web scraping: Difference between revisions
m
→{{header|Phix}}
Line 1,489:
if string(res) then
timedate td = parse_date_string(res, {"Mmm. d, hh:mm:ss"})
?format_timedate(td,"h:mpm Dddd Mmmm ddth")
?format_timedate(date(),"h:mpm Dddd Mmmm ddth")
end if
else
Line 1,498 ⟶ 1,500:
{{out}}
<pre>
"Apr. 26, 12:
"12:
"1:38pm Friday April 26th"
</pre>
The last line differs because it is British Summer Time here.<br>
Note that since that webpage has no year, td[DT_YEAR] will be 0,
=={{header|PHP}}==
|