]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/sg_time.hxx
Manage OSG object cache explicitly
[simgear.git] / simgear / timing / sg_time.hxx
index fb23ddf50e13e995201cb39ade81d6f4282495e7..0ec0138b8a7ae369e45ef107a83583a6b916083e 100644 (file)
@@ -5,7 +5,7 @@
 
 // Written by Curtis Olson, started August 1997.
 //
-// Copyright (C) 1997  Curtis L. Olson  - curt@flightgear.org
+// Copyright (C) 1997  Curtis L. Olson  - http://www.flightgear.org/~curt
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Library General Public
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 // Library General Public License for more details.
 //
-// You should have received a copy of the GNU Library General Public
-// License along with this library; if not, write to the
-// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-// Boston, MA  02111-1307, USA.
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -29,9 +28,9 @@
 #define _SG_TIME_HXX
 
 
-#ifndef __cplusplus                                                          
+#ifndef __cplusplus
 # error This library requires C++
-#endif                                   
+#endif
 
 
 #include <simgear/compiler.h>
@@ -192,6 +191,9 @@ public:
 
     /** @return grenich side real time (lst when longitude == 0) */
     inline double getGst() const { return gst; };
+
+    /** @return offset in seconds to local timezone time */
+    inline time_t get_local_offset() const { return local_offset; };
 };
 
 
@@ -200,7 +202,7 @@ public:
 
 /**
  * \relates SGTime
- * Return unix time in seconds for the given data (relative to GMT)
+ * Return unix time in seconds for the given date (relative to GMT)
  * @param year current GMT year
  * @param month current GMT month
  * @param day current GMT day