Add DateTime option to Range function
Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
parent
41cdf265dc
commit
15a3f8fcde
6 changed files with 71 additions and 11 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace Arendsen\FluxQueryBuilder;
|
||||
|
||||
use DateTime;
|
||||
|
||||
class Formatters {
|
||||
|
||||
public static function valueToString($value): string
|
||||
|
|
@ -38,4 +40,8 @@ class Formatters {
|
|||
return implode(', ', $array);
|
||||
}
|
||||
|
||||
public static function dateTimeToString(DateTime $dateTime): string {
|
||||
return 'time(v: ' . $dateTime->format('Y-m-d\TH:i:s\Z') . ')';
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue