2017 © Pedro Peláez
 

library datetimeformat

Format your time

image

setkyar/datetimeformat

Format your time

  • Tuesday, June 30, 2015
  • by setkyar
  • Repository
  • 1 Watchers
  • 4 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Times

Installation

Run the following via your terminal, (*1)

composer require "setkyar/datetimeformat"

Usage

Create a index.php and put the following code and run $php -S localhost:8000, (*2)

<?php
    // Display Errors On
    ini_set('display_errors', 'On');

    $autoload = __DIR__.'/vendor/autoload.php';

    if ( ! file_exists($autoload))
    {
      exit("Need to run \"composer install\"!");
    }

    require $autoload;

    use SetKyar\DateTimeFormat\DateTimeFormat;

    //What you want to use functions goes here!

Functions

Get today

DateTimeFormat::now();

Get first day of the month

DateTimeFormat::firstDayOfthisMonth();

Get last day of the month

DateTimeFormat::lastDayOfthisMonth());

Get First day of next month

DateTimeFormat::firstDayOfNextMonth());

Last Dat of Next Month

DateTimeFormat::lastDayOfNextMonth();

DateTimeFormat::age('22-11-1994');

DateTimeFormat::fromStartOfDay();

DateTimeFormat::endOfDayFromNow();

DateTimeFormat::verifyDate('16-03-2015', 'd-m-y');

Contributing

  • Fork it ( https://github.com/setkyar/time )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request
  • Stars are welcome too :smile:

License

WTFPL, (*3)

The Versions

30/06 2015

dev-master

9999999-dev

Format your time

  Sources   Download

WTFPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Set Kyar Wa Lar

date time format

16/03 2015

v1.0

1.0.0.0

Format your time

  Sources   Download

WTFPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Set Kyar Wa Lar

date time format