6 return shift->now(time_zone => $::locale->get_local_time_zone);
10 return shift->now(time_zone => $::locale->get_local_time_zone)->truncate(to => 'day');
14 return $::locale->format_date(\%::myconfig, $_[0]);
18 return $::locale->parse_date_to_object(\%::myconfig, $_[1]);
29 SL::Helpers::DateTime - helper functions for L<DateTime>
37 Returns the current time with the time zone set to the local time zone.
41 Returns the current date with the time zone set to the local time zone.
45 Formats the date according to the current Lx-Office user's date
48 =item C<from_lxoffice>
50 Parses a date string formatted in the current Lx-Office user's date
51 format and returns an instance of L<DateTime>.
57 Moritz Bunkus E<lt>m.bunkus@linet-services.deE<gt>