]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/lowleveltime.h
Fix #1783: repeated error message on console
[simgear.git] / simgear / timing / lowleveltime.h
index 4d108586e1452a369287d3ec183fe5ba67549354..1be49531ef2fd72da1091c054bb58184a8af981a 100644 (file)
  * 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.
  *
  **************************************************************************/
 
@@ -42,6 +41,11 @@ void show (const char *zone, time_t t, int v);
 /* adapted from <time.h> */
 struct tm * fgLocaltime (const time_t *t, const char *tzName);
 
+/* version of time() which returns a value in GMT/UTC, without 
+ any timezone adjustment. Necessary on Windows where calling time()
+ returns a value in the local time-zone. */
+time_t sgGMTime();
+
 /* Prototype for the internal function to get information based on TZ.  */
 extern struct tm *fgtz_convert (const time_t *t, int use_localtime,
                                     struct tm *tp, const char *tzName);