2017 © Pedro Peláez
 

drupal-module date_interval

Provide a standard way to store a date interval in Drupal

image

gertvdb/date_interval

Provide a standard way to store a date interval in Drupal

  • Thursday, July 26, 2018
  • by gertvdb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Date Interval

Provide a standard way to store a date interval in Drupal., (*1)

Usage

Initialising the classes., (*2)


use Drupal\date_interval\DateIntervalPlusFactory; use Drupal\date_interval\Formatter\DrupalDateIntervalFormatter; $dateInterval = DateIntervalPlusFactory::createFromIntervalSpec('P2D'); $dateFormatter = new DrupalDateIntervalFormatter(TRUE, ' ', TRUE); $interval = $dateFormatter->format($dateInterval, '%d');

Release notes

8.x-1.1 + Basic setup of the module. + Provide a DateIntervalPlus and a DrupalDateInterval class. + Provide unit tests for DateIntervalPlus and DrupalDateInterval. + Improve flexibility and unit mapping of format() function., (*3)

The Versions

26/07 2018

dev-master

9999999-dev https://github.com/gertvdb/date_interval

Provide a standard way to store a date interval in Drupal

  Sources   Download

MIT

The Requires

 

by Gert van den Buijs

date_interval

26/07 2018

dev-develop

dev-develop https://github.com/gertvdb/date_interval

Provide a standard way to store a date interval in Drupal

  Sources   Download

MIT

The Requires

 

by Gert van den Buijs

date_interval

26/07 2018

1.0.0

1.0.0.0 https://github.com/gertvdb/date_interval

Provide a standard way to store a date interval in Drupal

  Sources   Download

MIT

The Requires

 

by Gert van den Buijs

date_interval