8namespace Bitrix\Sender\Internals;
10use Bitrix\Main\Localization\Loc;
11use Bitrix\Main\Application;
12use Bitrix\Main\Type\Date;
13use Bitrix\Main\Type\DateTime;
15Loc::loadMessages(__FILE__);
34 return Loc::getMessage(
'SENDER_PRETTY_DATE_FORMAT_DATETIME_PM_LOWER');
37 return Loc::getMessage(
'SENDER_PRETTY_DATE_FORMAT_DATETIME_PM_UPPER');
40 return Loc::getMessage(
'SENDER_PRETTY_DATE_FORMAT_DATETIME');
50 return Loc::getMessage(
'SENDER_PRETTY_DATE_FORMAT_DATE');
62 return \FormatDate(self::getDateTimeFormat(),
MakeTimeStamp($date));
73 $date = $date ?:
new Date();
74 return \FormatDate(self::getDateFormat(), DateTime::createFromTimestamp(
MakeTimeStamp($date)));
static getDateTimeFormat()
static formatDate(Date $date=null)
static formatDateTime(DateTime $date=null)
IsAmPmMode($returnConst=false)
MakeTimeStamp($datetime, $format=false)