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

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

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

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

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

Returns the object type.
my $type=$TimeSpan->type;
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.


Contact the author.

David Hillman
CPAN: DAHILLMA

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.

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