Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TimezoneInterface.php
Go to the documentation of this file.
1 <?php
8 
15 {
21  public function getDefaultTimezonePath();
22 
28  public function getDefaultTimezone();
29 
36  public function getDateFormat($type = \IntlDateFormatter::SHORT);
37 
43  public function getDateFormatWithLongYear();
44 
51  public function getTimeFormat($type = null);
52 
59  public function getDateTimeFormat($type);
60 
70  public function date($date = null, $locale = null, $useTimezone = true, $includeTime = true);
71 
80  public function scopeDate($scope = null, $date = null, $includeTime = false);
81 
89  public function scopeTimeStamp($scope = null);
90 
99  public function formatDate(
100  $date = null,
101  $format = \IntlDateFormatter::SHORT,
102  $showTime = false
103  );
104 
112  public function getConfigTimezone($scopeType = null, $scopeCode = null);
113 
122  public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);
123 
133  public function formatDateTime(
134  $date,
135  $dateType = \IntlDateFormatter::SHORT,
136  $timeType = \IntlDateFormatter::SHORT,
137  $locale = null,
138  $timezone = null,
139  $pattern = null
140  );
141 
148  public function convertConfigTimeToUtc($date, $format = 'Y-m-d H:i:s');
149 }
formatDate( $date=null, $format=\IntlDateFormatter::SHORT, $showTime=false)
$pattern
Definition: website.php:22
convertConfigTimeToUtc($date, $format='Y-m-d H:i:s')
scopeDate($scope=null, $date=null, $includeTime=false)
getConfigTimezone($scopeType=null, $scopeCode=null)
date($date=null, $locale=null, $useTimezone=true, $includeTime=true)
$type
Definition: item.phtml:13
$format
Definition: list.phtml:12
isScopeDateInInterval($scope, $dateFrom=null, $dateTo=null)
getDateFormat($type=\IntlDateFormatter::SHORT)
formatDateTime( $date, $dateType=\IntlDateFormatter::SHORT, $timeType=\IntlDateFormatter::SHORT, $locale=null, $timezone=null, $pattern=null)