2017 © Pedro Peláez
 

library time

get time for php

image

biangbiang/time

get time for php

  • Tuesday, September 5, 2017
  • by biangbiang
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-time

Install

composer require biangbiang/time

Usage

<?php

require 'vendor/autoload.php';

$time = 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();

The Versions

05/09 2017

dev-master

9999999-dev

get time for php

  Sources   Download

MIT

by biang

04/09 2017

1.0

1.0.0.0

get time for php

  Sources   Download

MIT

by biang