Class Core_Date
Date helper
Package: HostCMS\Core
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/date.php
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/date.php
Methods summary
public static
integer
|
|
public static
integer
|
#
datetime2timestamp( string $sDate )
Преобразовывает дату из формата даты-времени во временную метку. При установленном формате обратного преобразования в Core::::$mainConfig['reverseDateTimeFormat'] будет использоваться он. |
public static
integer
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
#
timestamp2sql( integer $timestamp )
Преобразовывает дату из временной метки в формат даты-время SQL |
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
#
timestamp2datetime( integer $timestamp )
Преобразовывает дату из временной метки в формат даты-время |
public static
string
|
#
time2string( integer $time )
Convert seconds to string (seconds, minutes, hours, days or years). If NULL return empty string |
public static
string
|
#
timestamp2string( integer $timestamp, $withTime = TRUE )
Преобразовывает дату из временной метки в текстовый формат |
public static
|
|
public static
|