Modül:Kaynak/KB1/Tarih doğrulama: Revizyonlar arasındaki fark

TR Wikipedia üzerinden Sanarsiv uyumlu otomatik taşıma.
 
Değişiklik özeti yok
 
12. satır: 12. satır:


returns true if:
returns true if:
Sanarsiv start date <= accessdate < today + 2 days
Wikipedia start date <= accessdate < today + 2 days


Sanarsiv start date is 2001-01-15T00:00:00 UTC which is 979516800 seconds after 1970-01-01T00:00:00 UTC (the start of Unix time)
Wikipedia start date is 2001-01-15T00:00:00 UTC which is 979516800 seconds after 1970-01-01T00:00:00 UTC (the start of Unix time)
accessdate is the date provided in |accessdate= at time 00:00:00 UTC
accessdate is the date provided in |accessdate= at time 00:00:00 UTC
today is the current date at time 00:00:00 UTC plus 48 hours
today is the current date at time 00:00:00 UTC plus 48 hours
43. satır: 43. satır:
end
end


if 979516800 <= access_ts and access_ts < tomorrow_ts then -- Sanarsiv start date <= accessdate < tomorrow's date
if 979516800 <= access_ts and access_ts < tomorrow_ts then -- Wikipedia start date <= accessdate < tomorrow's date
return true;
return true;
else
else