It appears that if the minutes start with a 0
, it drops the digit -- see
https://query.yahooapis.com/v1/public/yql?q=select%20astronomy%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22los+angeles%2C%20ca%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
Returns:
{"query":{"count":1,"created":"2017-03-14T23:40:02Z","lang":"en-us","results":{"channel":{"astronomy":{"sunrise":"7:5 am","sunset":"7:0 pm"}}}}}
While
https://query.yahooapis.com/v1/public/yql?q=select%20astronomy%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22maui%2C%20hi%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
Returns
{"query":{"count":1,"created":"2017-03-14T23:41:16Z","lang":"en-us","results":{"channel":{"astronomy":{"sunrise":"6:35 am","sunset":"6:35 pm"}}}}}
Any ideas for a fix to this? I guess I could slice the time at the colon and then pad the result to 2 digits, but that seems messy.