summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Utility/ITimeFactory.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Utility/ITimeFactory.php b/lib/public/AppFramework/Utility/ITimeFactory.php
index 7951d6ad8e6..0367f037a6e 100644
--- a/lib/public/AppFramework/Utility/ITimeFactory.php
+++ b/lib/public/AppFramework/Utility/ITimeFactory.php
@@ -35,6 +35,14 @@ interface ITimeFactory {
* @return int the result of a call to time()
* @since 8.0.0
*/
- public function getTime() : int;
+ public function getTime(): int;
+
+ /**
+ * @param string $time
+ * @param \DateTimeZone $timezone
+ * @return \DateTime
+ * @since 15.0.0
+ */
+ public function getDateTime(string $time = 'now', \DateTimeZone $timezone = null): \DateTime;
}