0.1.3 • Published 6 years ago

gpxtimeshift v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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
0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago