NAME

Geo::GoogleEarth::Document::TimeSpan - Geo::GoogleEarth::Document::TimeSpan

SYNOPSIS

use Geo::GoogleEarth::Document;
my $document=Geo::GoogleEarth::Document->new();
my $placemark = $document->placemark();
$placemark->TimeSpan( begin => timestamp, end => timestamp);

DESCRIPTION

Geo::GoogleEarth::Document::TimeSpan is a Geo::GoogleEarth::Document::Base with a few other methods.

USAGE

my $TimeSpan = $placemark->TimeSpan( begin => timestamp , end => timestamp );

CONSTRUCTOR

new

my $TimeSpan = $placemark->TimeSpan( begin => timestamp , end => timestamp );

METHODS

type

Returns the object type.

my $type=$TimeSpan->type;

structure

Returns a hash reference for feeding directly into XML::Simple.

my $structure = $TimeSpan->structure; <TimeSpan id="ID"> <begin>...</begin> <!-- kml:dateTime --> <end>...</end> <!-- kml:dateTime --> </TimeSpan>

Note that KML timestamp format is YYYY-MM-DDTHH24:MM:SSZ. For example, 2009-01-17T19:13:24Z. "T" is a separator, and "Z" indicates the timezone, in this case, GMT.

id

BUGS

SUPPORT

Contact the author.

AUTHOR

David Hillman
CPAN: DAHILLMA

COPYRIGHT

This program is free software licensed under the...

The BSD License

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO

Geo::GoogleEarth::Document creates a GoogleEarth KML Document.