[OSM-dev] Planet file date unclear at planet.osm.org
toby.murray at gmail.com
Fri Jan 11 13:57:59 GMT 2013
The timestamp you see in the directory listing is the last time the
file was modified, not when it was created. It is also in server local
time. Right now that happens to be the same as UTC but when London
enters daylight savings time it will be an hour off.
But the osm.bz2 file has the timestamp that you need inside of it in
the second line. No need to parse the whole file.
bzcat planet-130102.osm.bz2 | head -n 2
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" [license, etc] timestamp="2013-01-02T01:10:14Z">
I used the pbf this last time which doesn't have the timestamp in it
but since the pbf is generated from the .osm.bz2 file, the same
timestamp applies to both.
On Fri, Jan 11, 2013 at 7:02 AM, sly (sylvain letuffe)
<liste at letuffe.org> wrote:
> For those who use the planet from planet.osm.org and apply diffs afterward,
> pay attention to the generation date of the planet.
> Here :
> It says "latest" with a file generation date of 05-Jan-2013 05:08 but it isn't
> exactly clear when is the latest object in that file (or if there is, I'm not
> aware of the trick)
> To check the date of the latest object (beside parsing the whole file) you can
> go to http://planet.osm.org/planet/2013/ and check the file's name date, then
> take some margin *before* to take your diff import sequence number.
> ps: on a side note, I heard there was ongoing work to provide a file's
> timestamp in the pbf file itselft, is that operationnal ? or planned to be ?
> sly (sylvain letuffe)
> dev mailing list
> dev at openstreetmap.org
More information about the dev