IDateTimeZone.php 457 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP;
  8. /**
  9. * Interface IDateTimeZone
  10. *
  11. * @since 8.0.0
  12. */
  13. interface IDateTimeZone {
  14. /**
  15. * @param bool|int $timestamp
  16. * @return \DateTimeZone
  17. * @since 8.0.0 - parameter $timestamp was added in 8.1.0
  18. */
  19. public function getTimeZone($timestamp = false);
  20. }