1 package Reaction::UI::ViewPort::Field::Mutable::DateTime;
7 class 'Reaction::UI::ViewPort::Field::Mutable::DateTime',
8 is 'Reaction::UI::ViewPort::Field::DateTime', which {
10 does 'Reaction::UI::ViewPort::Field::Role::Mutable::Simple';
12 implements adopt_value_string => as {
14 my $value = $self->value_string;
15 my ($epoch) = Time::ParseDate::parsedate($value);
17 my $dt = 'DateTime'->from_epoch( epoch => $epoch );
20 $self->message("Could not parse date or time");
31 Reaction::UI::ViewPort::Field::DateTime
39 Accessor for the string representation of the DateTime object.
41 =head2 value_string_default_format
43 By default it is set to "%F %H:%M:%S".
49 =head2 L<Reaction::UI::ViewPort::Field>
53 See L<Reaction::Class> for authors.
57 See L<Reaction::Class> for the license.