-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from smartbooster/php_formatter
Add PhpFormatter
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Smart\CoreBundle\Formatter; | ||
|
||
/** | ||
* @author Mathieu Ducrot <[email protected]> | ||
*/ | ||
class PhpFormatter | ||
{ | ||
// MDT Native php format to use on DateTime::format https://www.php.net/manual/en/datetime.format.php | ||
public const DATE = 'Y-m-d'; | ||
public const DATE_FR = 'd/m/Y'; | ||
public const DATETIME = 'Y-m-d H:i'; | ||
public const DATETIME_FR = 'd/m/Y H:i'; | ||
public const DATETIME_WITH_SECONDS = 'Y-m-d H:i:s'; | ||
public const DATETIME_WITH_SECONDS_FR = 'd/m/Y H:i:s'; | ||
} |