Kodlama Dili : Php
Kısa Açıklama : Php ile tarih işlemleri yapmanın mantığını aşağıdaki kodla kavrayacaksınız. Örneğin doğum gününüzü hesaplatabilirsiniz. Ya da daha profesyonel işlemlerden örnek vermek gerekirse, premium üyelik satacağınız sitenizde üyelik bitiş tarihini hesaplatıp kullanıcınıza gösterebilirsiniz.
KOD :
<?php
echo strtotime("now"), "\\n";
// bugün
echo strtotime("10 September 2000"), "\\n";
// 10 eylül 2000
echo strtotime("+1 day"), "\\n";
// bir gün sonrası
echo strtotime("+1 week"), "\\n";
// bir hafta sonrası
echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\\n";
// bir hafta 2 gün 4 saat 2 saniye sonrası
echo strtotime("next Thursday"), "\\n";
// en yakın perşembe
echo strtotime("last Monday"), "\\n";
// son pazartesi
?>