3
* Spring Signage Ltd - http://www.springsignage.com
4
* Copyright (C) 2016 Spring Signage Ltd
8
namespace Xibo\Service;
11
* Interface DateServiceInterface
12
* @package Xibo\Service
14
interface DateServiceInterface
18
* @param int|\Jenssegers\Date\Date $timestamp
19
* @param string $format
20
* @param string $timezone
23
public function getLocalDate($timestamp = NULL, $format = NULL, $timezone = NULL);
27
* Get the default date format
30
public function getSystemFormat();
33
* Get Date from String
34
* @param string $string
35
* @param string $format
36
* @return \Jenssegers\Date\Date
38
public function parse($string = null, $format = null);
44
public function setLocale($identifier);
47
* Timezone identifiers
50
public function timezoneList();
53
* Extract only a time format from mask
57
public function extractTimeFormat($format);
60
* Converts a format to moment
61
* inspired by http://stackoverflow.com/questions/30186611/php-dateformat-to-moment-js-format
65
public function convertPhpToMomentFormat($format);
68
* Converts a format to bootstrap date picker
69
* inspired by http://stackoverflow.com/questions/30186611/php-dateformat-to-moment-js-format
74
public function convertPhpToBootstrapFormat($format, $includeTime = true);
b'\\ No newline at end of file'