Feature #377

Document date operations

Added by Eduardo almost 4 years ago. Updated almost 4 years ago.

Status:FeedbackStart date:2013-09-28
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:Candidate for next minor release
Platform:

Description

Like:

Add Delta Days

gmt gmtmath -Q -f0T 2013-09-01T00:00:00 86400 30.5 MUL ADD =

2013-10-01T12:00:00

Day of Year

gmt gmtmath -Q -fi0T -f0f 2013-02-01T00:00:00 2013-01-01T00:00:00 SUB 86400 DIV 1 ADD =

32

History

#1 Updated by Eduardo almost 4 years ago

GPS week

without rollover

gmt gmtmath -Q -fi0T -fo0f 2013-03-07T00:00.00 1980-01-06T00:00:00 SUB 86400 DIV 7 DIV FLOOR =

1730

with rollover

gmt gmtmath -Q -fi0T -fo0f 2013-03-07T00:00.00 1980-01-06T00:00:00 SUB 86400 DIV 7 DIV FLOOR 1024 MOD =

706

http://www.ngs.noaa.gov/CORS/Gpscal.shtml
http://www.usno.navy.mil/USNO/time/gps/gps-week-number-rollover

#2 Updated by Paul almost 4 years ago

  • Status changed from New to Feedback

Eduardo, perhaps you can make macros for such operations if you find them useful. We could add that as an example to the man page. If you have not made a gmtmath macro before this is your chance.

#3 Updated by Florian almost 4 years ago

  • Target version changed from 5.1.0 to Candidate for next minor release

Also available in: Atom PDF