PHP code example of biangbiang / time
1. Go to this page and download the library: Download biangbiang/time library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
biangbiang / time example snippets
= new Biang\Time\Time();
$now_timestamp = $time->get_now_timestamp();
$now_datetime = $time->get_now_datetime();
$today_start_timestamp = $time->get_today_start_timestamp();
$today_start_datetime = $time->get_today_start_datetime();
$yesterday_start_timestamp = $time->get_yesterday_start_timestamp();
$yesterday_start_datetime = $time->get_yesterday_start_datetime();
$tomorrow_start_timestamp = $time->get_tomorrow_start_timestamp();
$tomorrow_start_datetime = $time->get_tomorrow_start_datetime();
$next_month_start_timestamp = $time->get_next_month_start_timestamp();
$next_month_start_datetime = $time->get_next_month_start_datetime();
$next_year_start_timestamp = $time->get_next_year_start_timestamp();
$next_year_start_datetime = $time->get_next_year_start_datetime();