| Business-UPS-Tracking documentation | view source | Contained in the Business-UPS-Tracking distribution. |
Business::UPS::Tracking::Utils - Utility functions
use Business::UPS::Tracking::Utils;
This module provides some basic utility functions for Business::UPS::Tracking and defines some Moose type constraints and coercions.
$datetime = parse_date($string);
Parses a date string (YYYYMMDD) and returns a DateTime object.
$datetime = parse_time($string,$datetime);
Parses a time string (HHMMSS) and appends the parsed values to the given DateTime object
my $escaped_string = escape_xml($string);
Escapes a string for xml
| Business-UPS-Tracking documentation | view source | Contained in the Business-UPS-Tracking distribution. |