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');
 
  15   my %params = (scalar(@_) == 1) && (ref($_[0]) eq 'HASH') ? %{ $_[0] } : @_;
 
  16   return $::locale->format_date_object($self, %params);
 
  20   return $::locale->parse_date_to_object(\%::myconfig, $_[1]);
 
  31 SL::Helpers::DateTime - helper functions for L<DateTime>
 
  39 Returns the current time with the time zone set to the local time zone.
 
  43 Returns the current date with the time zone set to the local time zone.
 
  45 =item C<to_lxoffice %param>
 
  47 Formats the date and time according to the current kivitendo user's
 
  48 date format with L<Locale::format_datetime_object>.
 
  50 =item C<from_lxoffice $string>
 
  52 Parses a date string formatted in the current kivitendo user's date
 
  53 format and returns an instance of L<DateTime>.
 
  55 Note that only dates can be parsed at the moment, not the time
 
  56 component (as opposed to L<to_lxoffice>).
 
  62 Moritz Bunkus E<lt>m.bunkus@linet-services.deE<gt>