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);
 
  25   return $::locale->parse_date_to_object(\%::myconfig, $_[1]);
 
  41 SL::Helpers::DateTime - helper functions for L<DateTime>
 
  49 Returns the current time with the time zone set to the local time zone.
 
  53 Returns the current date with the time zone set to the local time zone.
 
  55 =item C<to_kivitendo %param>
 
  57 Formats the date and time according to the current kivitendo user's
 
  58 date format with L<Locale::format_datetime_object>.
 
  60 The legacy name C<to_lxoffice> is still supported.
 
  62 =item C<from_kivitendo $string>
 
  64 Parses a date string formatted in the current kivitendo user's date
 
  65 format and returns an instance of L<DateTime>.
 
  67 Note that only dates can be parsed at the moment, not the time
 
  68 component (as opposed to L<to_kivitendo>).
 
  70 The legacy name C<from_lxoffice> is still supported.
 
  76 Moritz Bunkus E<lt>m.bunkus@linet-services.deE<gt>