Subversion Repositories lagranto.wrf

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 michaesp 1
.TH gettidiff
2
.SH NAME 
3
.B gettidiff - get the difference (in hours) between two dates
4
.SH SYNOPSIS 
5
.B gettidiff
6
.I date1 
7
.I date2
8
.SH DESCRIPTION
9
Get the time difference (in hours) between two dates ( in form YYYYMMDD_HH(MM), i.e. the minutes are optional): date1 - date2. The output is in format HH or HH.MM
10
.SH PARAMETERS
11
.TP 15
12
.B date1 
13
first date ( in form YYYYMMDD_HH(MM) )
14
.TP 15
15
.B date2 
16
second date ( in form YYYYMMDD_HH(MM) )
17
.SH EXAMPLES
18
.TP 5
19
.B  [1] gettidiff 20110102_18 20110205_00
20
gives the time difference between 20110102_18 and 20110205_00; the result is -798 h.
21
.SH AUTHOR
22
Written by Michael Sprenger and Heini Wernli (January 2011)