core\util\class-date-util.php
Méthodes utilitaires pour les dates.
- Author
- Eoxia
- Copyright
- 2015-2018 Eoxia
- Package
- EO_Framework\Core\Util
- Since
- 0.1.0
- Version
- 1.0.0
\eoxia\Date_Util
Package: EO_Framework\Core\Util




Méthodes utilitaires pour les dates.
- Parent(s)
- \eoxia\Singleton_Util
- Inherited_from
- \eoxia\Singleton_Util
Properties
Methods

__construct() : voidfinalinherited
Appelle le constructeur parent
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0

construct() : voidLe constructeur obligatoirement pour utiliser la classe \eoxia\Singleton_Util
Details
- Since
- 0.1.0
- Version
- 1.0.0

construct() : voidabstractinherited
Le constructeur pour les enfants
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0

convert_to_custom_hours(integer $min, boolean $display_full_min = true) : stringConvertis les minutes en un format spécial sur 7h = 1 jour.
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $min | integer | Le nombre de minute. |
| $display_full_min | boolean | Si oui, affiches $min entre paranthèse. |
| Type | Description |
|---|---|
| string | La date formatée. |
- Since
- 1.0.0
- Version
- 1.0.0

fill_date(string $current_time) : arrayRemplis les champs de type 'wpeo_date'.
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $current_time | string | Le date envoyé par l'objet. |
| Type | Description |
|---|---|
| array | { Les propriétés @type array data_input { Les propriétés de date_input @type string date La date au format MySQL @type array fr_FR { Les propriétés de fr_FR @type string date La date au format d/m/Y @type string date_time La date au format d/m/Y H:i:s } @type array en_US { Les propriétés de en_US @type string date La date au format m-d-y @type string date_time La date au format m-d-y H:i:s } @type string date_human_readable La date au format lisible. } } |
- Since
- 1.0.0
- Version
- 1.0.0