gpxtimeshift
v0.1.3
Published
Command line tool to shift timestamps in GPX file by specified offset
Downloads
2
Readme
gpxtimeshift
Command line tool to shift timestamps in GPX file by specified offset
#example
gpxtimeshift +1h < today.gpx
Install
sudo npm install -g gpxtimeshift
Usage
gpxtimeshift [-h] <offset> < <gpxfile> > <output>
Command line tool to shift timestamps in GPX file.
example:
gpxtimeshift +1s < today.gpx >output.gpx #+ 1 second
gpxtimeshift +1h < today.gpx >output.gpx #+ 1 hour
gpxtimeshift +1d < today.gpx >output.gpx #+ 1 day
gpxtimeshift +1m < today.gpx >output.gpx #+ 1 minute
gpxtimeshift -1d < today.gpx >output.gpx #- 1 day
Use as module
var GpxTimeShift=require('gpxtimeshift')
gpxString="<?xml version ......</gpx>"
offsetSeconds=-3600;
GpxTimeShift(gpxString,offsetSeconds)
.then(function(gpxString){
console.log(gpxString);
});
Change Log
- 0.1.x:first release