NAME

DAIA::Available - Information about a service that is currently unavailable

DESCRIPTION

This class is derived from DAIA::Availability - see that class for details. In addition there is the property delay that holds an XML Schema duration value or the special value unknown. Obviously the status property of a DAIA::Unavailable object is always 1.

PROPERTIES

href
limitation
message
delay

A delay as duration string (XML Schema xs:duration). To get the delay as DateTime::Duration object, use the parse_duration function that can be exported on request.

FUNCTIONS

This package implements a duration parsing method based on code from DateTime::Format::Duration::XSD by Smal D A.

parse_duration ( $string )

Parses a XML Schema xs:duration string and returns a DateTime::Duration object or undef.

normalize_duration ( $string-or-duration-object )

Returns a normalized duration (according to XML Schema xs:duration). You can pass a duration string or a DateTime::Duration object. Returns undef on failure.

AUTHOR

Jakob Voss <jakob.voss@gbv.de>

LICENSE

Copyright (C) 2009 by Verbundzentrale Goettingen (VZG) and Jakob Voss

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.