DateTime utilities Ubiquity\utils\base$UDateTime This class is part of Ubiquity.
More...
|
static | $locales = ['fr' => ['fr', 'fr_FR', 'fr_FR.UTF-8'], 'en' => ['en', 'en_US', 'en_US.UTF-8']] |
|
DateTime utilities Ubiquity\utils\base$UDateTime This class is part of Ubiquity.
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.0.2
Definition at line 14 of file UDateTime.php.
◆ elapsed()
static elapsed |
( |
|
$datetime, |
|
|
bool |
$full = false |
|
) |
| |
|
static |
◆ longDate()
static longDate |
( |
|
$date, |
|
|
|
$locale = 'en' |
|
) |
| |
|
static |
◆ longDatetime()
static longDatetime |
( |
|
$datetime, |
|
|
|
$locale = 'en' |
|
) |
| |
|
static |
◆ mysqlDate()
static mysqlDate |
( |
\DateTime |
$date | ) |
|
|
static |
◆ mysqlDateTime()
static mysqlDateTime |
( |
\DateTime |
$datetime | ) |
|
|
static |
◆ secondsToTime()
static secondsToTime |
( |
|
$seconds | ) |
|
|
static |
◆ setLocale()
static setLocale |
( |
|
$locale | ) |
|
|
staticprivate |
◆ shortDate()
static shortDate |
( |
|
$date, |
|
|
|
$locale = 'en' |
|
) |
| |
|
static |
◆ shortDatetime()
static shortDatetime |
( |
|
$datetime, |
|
|
|
$locale = 'en' |
|
) |
| |
|
static |
◆ $locales
$locales = ['fr' => ['fr', 'fr_FR', 'fr_FR.UTF-8'], 'en' => ['en', 'en_US', 'en_US.UTF-8']] |
|
staticprivate |
◆ MYSQL_DATE_FORMAT
const MYSQL_DATE_FORMAT = 'Y-m-d' |
◆ MYSQL_DATETIME_FORMAT
const MYSQL_DATETIME_FORMAT = 'Y-m-d H:i:s' |
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/utils/base/UDateTime.php