Business::UPS::Tracking::Utils - Utility functions


Business-UPS-Tracking documentation  | view source Contained in the Business-UPS-Tracking distribution.

Index


NAME

Top

Business::UPS::Tracking::Utils - Utility functions

SYNOPSIS

Top

 use Business::UPS::Tracking::Utils;

DESCRIPTION

Top

This module provides some basic utility functions for Business::UPS::Tracking and defines some Moose type constraints and coercions.

FUNCTIONS

Top

parse_date

 $datetime = parse_date($string);

Parses a date string (YYYYMMDD) and returns a DateTime object.

parse_time

 $datetime = parse_time($string,$datetime);

Parses a time string (HHMMSS) and appends the parsed values to the given DateTime object

escape_xml

 my $escaped_string = escape_xml($string);

Escapes a string for xml


Business-UPS-Tracking documentation  | view source Contained in the Business-UPS-Tracking distribution.