aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/IDateTimeFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/IDateTimeFormatter.php')
-rw-r--r--lib/public/IDateTimeFormatter.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/public/IDateTimeFormatter.php b/lib/public/IDateTimeFormatter.php
index f85a88b4e38..75e5f2e1cc7 100644
--- a/lib/public/IDateTimeFormatter.php
+++ b/lib/public/IDateTimeFormatter.php
@@ -44,7 +44,7 @@ interface IDateTimeFormatter {
* @return string Formatted date string
* @since 8.0.0
*/
- public function formatDate($timestamp, $format = 'long', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null);
+ public function formatDate($timestamp, $format = 'long', ?\DateTimeZone $timeZone = null, ?\OCP\IL10N $l = null);
/**
* Formats the date of the given timestamp
@@ -62,7 +62,7 @@ interface IDateTimeFormatter {
* @return string Formatted relative date string
* @since 8.0.0
*/
- public function formatDateRelativeDay($timestamp, $format = 'long', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null);
+ public function formatDateRelativeDay($timestamp, $format = 'long', ?\DateTimeZone $timeZone = null, ?\OCP\IL10N $l = null);
/**
* Gives the relative date of the timestamp
@@ -77,7 +77,7 @@ interface IDateTimeFormatter {
* >= 13 month => last year, n years ago
* @since 8.0.0
*/
- public function formatDateSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null);
+ public function formatDateSpan($timestamp, $baseTimestamp = null, ?\OCP\IL10N $l = null);
/**
* Formats the time of the given timestamp
@@ -94,7 +94,7 @@ interface IDateTimeFormatter {
* @return string Formatted time string
* @since 8.0.0
*/
- public function formatTime($timestamp, $format = 'medium', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null);
+ public function formatTime($timestamp, $format = 'medium', ?\DateTimeZone $timeZone = null, ?\OCP\IL10N $l = null);
/**
* Gives the relative past time of the timestamp
@@ -111,7 +111,7 @@ interface IDateTimeFormatter {
* >= 13 month => last year, n years ago
* @since 8.0.0
*/
- public function formatTimeSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null);
+ public function formatTimeSpan($timestamp, $baseTimestamp = null, ?\OCP\IL10N $l = null);
/**
* Formats the date and time of the given timestamp
@@ -124,7 +124,7 @@ interface IDateTimeFormatter {
* @return string Formatted date and time string
* @since 8.0.0
*/
- public function formatDateTime($timestamp, $formatDate = 'long', $formatTime = 'medium', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null);
+ public function formatDateTime($timestamp, $formatDate = 'long', $formatTime = 'medium', ?\DateTimeZone $timeZone = null, ?\OCP\IL10N $l = null);
/**
* Formats the date and time of the given timestamp
@@ -138,5 +138,5 @@ interface IDateTimeFormatter {
* @return string Formatted relative date and time string
* @since 8.0.0
*/
- public function formatDateTimeRelativeDay($timestamp, $formatDate = 'long', $formatTime = 'medium', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null);
+ public function formatDateTimeRelativeDay($timestamp, $formatDate = 'long', $formatTime = 'medium', ?\DateTimeZone $timeZone = null, ?\OCP\IL10N $l = null);
}