ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
DateTime.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Component\Input\Field
;
22
23
use
ILIAS\UI\Component\Input\Container\Form\FormInput
;
24
use
ILIAS\Data\DateFormat\DateFormat
;
25
use
ILIAS\UI\Component\Component
;
26
use
DateTimeImmutable
;
27
31
interface
DateTime
extends
FormInput
32
{
36
public
function
withFormat
(
DateFormat
$format
):
DateTime
;
37
41
public
function
getFormat
():
DateFormat
;
42
46
public
function
withTimezone
(
string
$tz):
DateTime
;
47
51
public
function
getTimezone
(): ?string;
52
56
public
function
withMinValue
(
DateTimeImmutable
$datetime):
DateTime
;
57
61
public
function
getMinValue
(): ?
DateTimeImmutable
;
62
66
public
function
withMaxValue
(
DateTimeImmutable
$datetime):
DateTime
;
67
71
public
function
getMaxValue
(): ?
DateTimeImmutable
;
72
76
public
function
withUseTime
(
bool
$with_time):
DateTime
;
77
81
public
function
getUseTime
(): bool;
82
86
public
function
withTimeOnly
(
bool
$time_only):
DateTime
;
87
91
public
function
getTimeOnly
(): bool;
92
}
DateTime
DateTimeImmutable
ILIAS\UI\Component\Input\Field\DateTime\withMinValue
withMinValue(DateTimeImmutable $datetime)
Limit accepted values to datetime past (and including) the given $datetime.
FormInput
ILIAS\UI\Component\Input\Field\DateTime\getUseTime
getUseTime()
Should the input be used to get both date and time?
Component
ILIAS\UI\Component\Input\Field\DateTime\getTimezone
getTimezone()
Get the timezone of this input.
ILIAS\UI\Component\Input\Field\DateTime\getMaxValue
getMaxValue()
Return the maximum date the input accepts.
ILIAS\UI\Component\Input\Field
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Checkbox.php:21
ILIAS\UI\Component\Input\Field\DateTime\withUseTime
withUseTime(bool $with_time)
Input both date and time.
ILIAS\UI\Component\Input\Field\DateTime\withFormat
withFormat(DateFormat $format)
Get an input like this using the given format.
ILIAS\Data\DateFormat\DateFormat
A Date Format provides a format definition akin to PHP's date formatting options, but stores the sing...
Definition:
DateFormat.php:26
ILIAS\UI\Component\Input\Field\DateTime\withMaxValue
withMaxValue(DateTimeImmutable $datetime)
Limit accepted values to datetime before (and including) the given value.
$format
$format
Definition:
metadata.php:235
ILIAS\UI\Component\Input\Field\DateTime\getMinValue
getMinValue()
Return the lowest value the input accepts.
DateFormat
ILIAS\UI\Component\Input\Field\DateTime\withTimezone
withTimezone(string $tz)
Get an input like this using the given timezone.
ILIAS\UI\Component\Input\Container\Form\FormInput
This describes inputs that can be used in forms.
Definition:
FormInput.php:31
ILIAS\UI\Component\Input\Field\DateTime\getFormat
getFormat()
Get the date-format of this input.
ILIAS\UI\Component\Input\Field\DateTime\getTimeOnly
getTimeOnly()
Should the input be used to get a time only?
ILIAS\UI\Component\Input\Field\DateTime\withTimeOnly
withTimeOnly(bool $time_only)
Use this Input for a time-value rather than a date.
src
UI
Component
Input
Field
DateTime.php
Generated on Mon Apr 14 2025 22:03:03 for ILIAS by
1.8.13 (using
Doxyfile
)