Update of /cvsroot/phpweather/phpweather/output
In directory usw-pr-cvs1:/tmp/cvs-serv25216
Modified Files:
pw_text.php
Log Message:
Utility function
Index: pw_text.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- pw_text.php 26 Mar 2002 23:10:49 -0000 1.5
+++ pw_text.php 27 Mar 2002 15:13:40 -0000 1.6
@@ -1124,6 +1124,20 @@
return 0;
}
+
+ /**
+ * Just get the time of the last report.
+ *
+ * @param array Data taken from decode_metar()
+ * @access public
+ */
+ function get_metar_time() {
+ // We use our own weather-object.
+ $data = $this->weather->decode_metar();
+ return gmdate('H:i \U\T\C', $data['time']);
+ }
+
+
/**
* Makes a short weather-report in a table.
*
|