Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
4 |
michaesp |
1 |
.TH newtime
|
|
|
2 |
.SH NAME
|
|
|
3 |
.B newtime -
|
|
|
4 |
get a new date string from an initial date and an offset in hours
|
|
|
5 |
.SH SYNOPSIS
|
|
|
6 |
.B newtime
|
|
|
7 |
.I date
|
|
|
8 |
.I offset
|
|
|
9 |
.SH DESCRIPTION
|
|
|
10 |
Given an initial date string in format "YYYYMMDD_HH" and an offset in hours, create a new date string - agin in the form "YYYYMMDD_HH".
|
|
|
11 |
.SH PARAMETERS
|
|
|
12 |
.TP 15
|
|
|
13 |
.I date
|
|
|
14 |
initial date in form "YYYYMMDD_HH", e.g. 20110102_18 for 18 UTC, 2nd January 2011.
|
|
|
15 |
.TP 15
|
|
|
16 |
.I offset
|
|
|
17 |
Offset in hours; the offset can be positive (into the future) or negative (into the past).
|
|
|
18 |
.SH EXAMPLES
|
|
|
19 |
.TP 5
|
|
|
20 |
.B [1] newtime 20110101_00 45
|
|
|
21 |
gives 20110102_21, the datestring 45 h after 20110101_00.
|
|
|
22 |
.SH AUTHOR
|
|
|
23 |
Written by Michael Sprenger and Heini Wernli (January 2011)
|
|
|
24 |
|