2017 © Pedro Peláez
 

library datetime

Enhanced DateTime, DateTimeImmutable and DateInterval objects

image

pauci/datetime

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  • Tuesday, March 6, 2018
  • by pauci
  • Repository
  • 1 Watchers
  • 3 Stars
  • 4,459 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 9 % Grown

The README.md

pauci/datetime

Source Code ![Latest Version][badge-release] Software License ![Build Status][badge-build] [Coverage Status][coverage] ![Total Downloads][badge-downloads], (*1)

Provides enhanced DateTime and DateInterval objects - extends built-in DateTimeImmutable object (to discourage the use of mutable version) - provides various static factory methods - allows to obtain current time including microseconds - supports conversion to string (ISO 8601) - implements JsonSerializable interface, (*2)

Examples

use Pauci\DateTime\DateTime;

date_default_timezone_set('Europe/Bratislava');

$now = DateTime::now();
echo $now;              // 2016-05-20T14:30:54+02:00
echo json_encode(['now' => $now]); // {"now":"2016-05-20T14:30:54+02:00"}

echo DateTime::microsecondsNow(); // 2016-05-20T14:30:54.074420+02:00

echo DateTime::fromFloatTimestamp(1512148033.000005); // 2017-12-01T18:07:13.000005+01:00

The Versions

06/03 2018

dev-master

9999999-dev

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Pavol Kirschbaum

06/03 2018

v0.3.3

0.3.3.0

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Pavol Kirschbaum

15/02 2018

v0.3.2

0.3.2.0

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

02/12 2017

v0.3.1

0.3.1.0

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

22/09 2017

v0.3.0

0.3.0.0

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

22/09 2017

dev-feature/php-7-1

dev-feature/php-7-1

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

22/09 2016

v0.2.1

0.2.1.0

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

22/09 2016

dev-feature/in-default-timezone

dev-feature/in-default-timezone

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

22/09 2016

dev-feature/datetimeinterface-annotations

dev-feature/datetimeinterface-annotations

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

22/09 2016

dev-bugfix/winter-summer-diff-negative-hour

dev-bugfix/winter-summer-diff-negative-hour

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

22/05 2016

dev-php7

dev-php7

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

20/05 2016

0.2.0

0.2.0.0

Enhanced DateTime, DateTimeImmutable and DateInterval objects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavol Kirschbaum

19/05 2016

0.1.3

0.1.3.0

  Sources   Download

MIT

The Development Requires

by Pavol Kirschbaum

17/05 2016

0.1.2

0.1.2.0

  Sources   Download

MIT

The Development Requires

by Pavol Kirschbaum

16/05 2016

0.1.1

0.1.1.0

  Sources   Download

MIT

The Development Requires

by Pavol Kirschbaum

16/05 2016

0.1.0

0.1.0.0

  Sources   Download

MIT

The Development Requires

by Pavol Kirschbaum