Mercurial > hg > egg-tcls
changeset 194:55ed3db51ee7
Rename a function.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 16 Jun 2014 00:46:40 +0300 |
parents | 93ec73deebc5 |
children | 9eee4e1b757c |
files | fetch_weather.pl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/fetch_weather.pl Mon Jun 16 00:39:53 2014 +0300 +++ b/fetch_weather.pl Mon Jun 16 00:46:40 2014 +0300 @@ -63,7 +63,7 @@ } -sub gmt_time_fmt($) +sub format_time_gmt($) { # 2012-02-27T00:00:00Z return gmtime($_[0])->strftime("%Y-%m-%dT%TZ"); @@ -397,7 +397,7 @@ "/wfs?request=getFeature&storedquery_id=fmi::observations::weather::". "multipointcoverage". # "timevaluepair". - "&starttime=".gmt_time_fmt(time() - 10*60)."&endtime=".gmt_time_fmt(time()). + "&starttime=".format_time_gmt(time() - 10*60)."&endtime=".format_time_gmt(time()). "¶meters=temperature,humidity&maxlocations=50&bbox=19,59,32,70"; print STDERR "FMI URI: ".$uri."\n" if opt_chk_bool("debug");