timestamp php
<?php
$date = new DateTime();
echo $date->getTimestamp();
?>
timestamp php
<?php
$date = new DateTime();
echo $date->getTimestamp();
?>
php datetime object get unix timestamp
$date = new DateTime();
echo $date->getTimestamp();
php timestamp
<?php
echo time();
?>
php datetime from timestamp
$ts = 1171502725;
$date = new DateTime("@$ts");
php timestamp
<?php
$nextWeek = time() + (7 * 24 * 60 * 60);
// 7 days; 24 hours; 60 mins; 60 secs
echo 'Now: '. date('Y-m-d') ."\n";
echo 'Next Week: '. date('Y-m-d', $nextWeek) ."\n";
// or using strtotime():
echo 'Next Week: '. date('Y-m-d', strtotime('+1 week')) ."\n";
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us