
    \i                         S r SSKJr   " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      rg)a  
Copyright 2011-2018 Kyle Lancaster | 2019 Patrick Eisoldt

Simplekml is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

    )Kmlablec                   <   ^  \ rS rSrSrU 4S jr\S 5       rSrU =r	$ )TimePrimitive   z[Abstract class extended by all time primitive types.

.. note::
  Not to be used directly.
c                 *   > [         [        U ]  5         g N)superr   __init__)self	__class__s    Z/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/simplekml/timeprimitive.pyr
   TimePrimitive.__init__   s    mT+-    c                     U R                   $ )zThe id string.)_idr   s    r   idTimePrimitive.id    s     xxr    )
__name__
__module____qualname____firstlineno____doc__r
   propertyr   __static_attributes____classcell__r   s   @r   r   r      s!    .  r   r   c                      ^  \ rS rSrSrS
U 4S jjr\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	U 4S jr
S	rU =r$ )TimeSpan&   a4  Represents an extent in time bounded by begin and end dates.

The arguments are the same as the properties.

Usage::

    import simplekml
    kml = simplekml.Kml()
    pnt = kml.newpoint(name='A Point')
    pnt.timespan.begin = "2011-02-20"
    pnt.timespan.end = "2012-07-31"
    kml.save("TimeStamp.kml")
c                 b   > [         [        U ]  5         XR                  S'   X R                  S'   g )Nbeginend)r	   r    r
   _kml)r   r#   r$   r   s      r   r
   TimeSpan.__init__4   s(    h&("		'		%r   c                      U R                   S   $ )z"The starting time, accepts string.r#   r%   r   s    r   r#   TimeSpan.begin9   s     yy!!r   c                      XR                   S'   g )Nr#   r(   )r   r#   s     r   r#   r)   >   s    "		'r   c                      U R                   S   $ )z The ending time, accepts string.r$   r(   r   s    r   r$   TimeSpan.endB   s     yyr   c                      XR                   S'   g )Nr$   r(   )r   r$   s     r   r$   r,   G   s    		%r   c                    > SR                  U R                  5      [        [        U ]  5       SR                  U R                  5      /nSR                  U5      $ )Nz<TimeSpan id="{0}">z</TimeSpan> formatr   r	   r    __str__joinr   bufr   s     r   r2   TimeSpan.__str__K   sK    $++DHH5Xt,.##DHH-/ wws|r   r   )NN)r   r   r   r   r   r
   r   r#   setterr$   r2   r   r   r   s   @r   r    r    &   so    
 " " \\# #     	ZZ  r   r    c                   8   ^  \ rS rSrSrU 4S jrU 4S jrSrU =r$ )
GxTimeSpanR   a  A copy of the :class:`simplekml.TimeSpan` element, in the extension namespace.

Args:
  * *same as properties*
  * *all other args same as* :class:`simplekml.TimeSpan`

Usage::

    import simplekml
    kml = simplekml.Kml()
    ls = kml.newlinestring(name='A LineString')
    ls.coords = [(18.333868,-34.038274,10.0), (18.370618,-34.034421,10.0)]
    ls.extrude = 1
    ls.altitudemode = simplekml.AltitudeMode.relativetoground
    ls.lookat.gxaltitudemode = simplekml.GxAltitudeMode.relativetoseafloor
    ls.lookat.latitude = -34.028242
    ls.lookat.longitude = 18.356852
    ls.lookat.range = 3000
    ls.lookat.heading = 56
    ls.lookat.tilt = 78
    ls.lookat.gxtimespan.begin = "2011-02-20"
    ls.lookat.gxtimespan.end = "2012-07-31"
    kml.save("GxTimeSpan.kml")
c                 .   > [         [        U ]
  " S0 UD6  g Nr   )r	   r9   r
   r   kwargsr   s     r   r
   GxTimeSpan.__init__k   s    j$(262r   c                    > SR                  U R                  5      [        [        U ]  5       SR                  U R                  5      /nSR                  U5      $ )Nz<gx:TimeSpan id="{0}">z</gx:TimeSpan>r/   r0   r4   s     r   r2   GxTimeSpan.__str__n   sK    '..txx8Xt,.&&txx02 wws|r   r   	r   r   r   r   r   r
   r2   r   r   r   s   @r   r9   r9   R   s    03 r   r9   c                   p   ^  \ rS rSrSrSU 4S jjr\S 5       r\R                  S 5       rU 4S jr	Sr
U =r$ )		TimeStampu   zRepresents a single moment in time.

The arguments are the same as the properties.

Usage::

    import simplekml
    kml = simplekml.Kml()
    pnt = kml.newpoint(name='A Point')
    pnt.timestamp.when = 2011
    kml.save("TimeStamp.kml")
c                 F   > [         [        U ]  5         XR                  S'   g Nwhen)r	   rD   r
   r%   )r   rH   r   s     r   r
   TimeStamp.__init__   s    i') 		&r   c                      U R                   S   $ )z!A moment in time, accepts string.rH   r(   r   s    r   rH   TimeStamp.when   s     yy  r   c                      XR                   S'   g rG   r(   )r   rH   s     r   rH   rK      s     		&r   c                    > SR                  U R                  5      [        [        U ]  5       SR                  U R                  5      /nSR                  U5      $ )Nz<TimeStamp id="{0}">z</TimeStamp>r/   r1   r   r	   rD   r2   r3   r4   s     r   r2   TimeStamp.__str__   sK    %,,TXX6Y-/$$TXX.0 wws|r   r   r   )r   r   r   r   r   r
   r   rH   r7   r2   r   r   r   s   @r   rD   rD   u   sC    !
 ! ! 
[[! ! r   rD   c                   8   ^  \ rS rSrSrU 4S jrU 4S jrSrU =r$ )GxTimeStamp   a  A copy of the :class:`simplekml.TimeStamp` element, in the extension namespace.

Args:
  * *same as properties*
  * *all other args same as* :class:`simplekml.TimeStamp`

Usage::

    import simplekml
    kml = simplekml.Kml()
    ls = kml.newlinestring(name='A LineString')
    ls.coords = [(18.333868,-34.038274,10.0), (18.370618,-34.034421,10.0)]
    ls.extrude = 1
    ls.altitudemode = simplekml.AltitudeMode.relativetoground
    ls.lookat.gxaltitudemode = simplekml.GxAltitudeMode.relativetoseafloor
    ls.lookat.latitude = -34.028242
    ls.lookat.longitude = 18.356852
    ls.lookat.range = 3000
    ls.lookat.heading = 56
    ls.lookat.tilt = 78
    ls.lookat.gxtimestamp.when = 2011
    kml.save("GxTimeStamp.kml")
c                 .   > [         [        U ]
  " S0 UD6  g r<   )r	   rQ   r
   r=   s     r   r
   GxTimeStamp.__init__   s    k4)3F3r   c                    > SR                  U R                  5      [        [        U ]  5       SR                  U R                  5      /nSR                  U5      $ )Nz<gx:TimeStamp id="{0}">z</gx:TimeStamp>r/   rN   r4   s     r   r2   GxTimeStamp.__str__   sK    (//9Y-/ ''13 wws|r   r   rB   r   s   @r   rQ   rQ      s    04 r   rQ   N)r   simplekml.baser   r   r    r9   rD   rQ   r   r   r   <module>rX      sN   $ #G  )} )X   F   F )  r   