NAME

Webservice::OVH::Helper

DESCRIPTION

Some Helper Methods

METHODS

construct_filter

Helper method to construct uri parameter

  • Parameter: key => value

  • Return: VALUE

  • Synopsis: Webservice::OVH::Helper->construct_filter();

construct_filter

Returns a DateTime Object. Methods uses special pattern to match ovhs DT format.

  • Parameter: $str_datetime - datetime string, $locale - locale like 'en_EN', $timezone - timezone

  • Return: DateTime

  • Synopsis: Webservice::OVH::Helper->parse_datetime("2016-05-15T19:30:23", 'de_DE', 'Europe/Berlin');

format_datetime

Returns a date time string fitting ovhs requirements

  • Parameter: $dt - DateTime object

  • Return: VALUE

  • Synopsis: my $dt_str = Webservice::OVH::Helper->format_datetime(DateTime->today());