gpxtimeshift - Command line tool to shift timestamps in GPX file by specified offset

(c)GoogleCustomSearch

#example
gpxtimeshift +1h < today.gpx

Install

sudo npm install -g gpxtimeshift

Usage

gpxtimeshift [-h] <offset> < <gpxfile>
Command line tool to shift timestamps in GPX file.

example:
    gpxtimeshift +1s < today.gpx  #+ 1 second
    gpxtimeshift +1h < today.gpx  #+ 1 hour
    gpxtimeshift +1d < today.gpx  #+ 1 day
    gpxtimeshift +1m < today.gpx  #+ 1 minute
    gpxtimeshift -1d < today.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

Popular Articles from This Page

kanasys.com > Economizing Technology > gpxtimeshift - Command line tool to shift timestamps in GPX file by specified offset