1r.timestamp(1)                Grass User's Manual               r.timestamp(1)
2
3
4

NAME

6       r.timestamp  - Print/add/remove a timestamp for a raster map.
7

KEYWORDS

9       raster
10

SYNOPSIS

12       r.timestamp
13       r.timestamp help
14       r.timestamp map=name  [date=timestamp]   [--verbose]  [--quiet]
15
16   Parameters:
17       map=name
18           Name of input raster map
19
20       date=timestamp
21           Datetime, datetime1/datetime2, or none
22

DESCRIPTION

24       This command has 2 modes of operation. If no date argument is supplied,
25       then the current timestamp for the raster map is  printed.  If  a  date
26       argument  is specified, then the timestamp for the raster map is set to
27       the specified date(s).  See EXAMPLES below.
28

NOTES

30       Strings containing spaces should be quoted. For specifying a  range  of
31       time,  the  two  timestamps should be separated by a forward slash.  To
32       remove the timestamp from a raster map, use date=none.
33

EXAMPLES

35       r.timestamp map=soils
36       Prints the timestamp for the "soils" raster map. If there is  no  time‐
37       stamp  for  soils,  nothing is printed. If there is a timestamp, one or
38       two time strings are printed, depending on if the timestamp for the map
39       consists of a single date or two dates (ie start and end dates).
40
41            r.timestamp map=soils date='15 sep 1987'
42       Sets the timestamp for "soils" to the single date
43       "15 sep 1987"
44
45            r.timestamp map=soils date='15 sep 1987/20 feb 1988'
46       Sets the timestamp for "soils" to have the start date
47       "15 sep 1987" and the end date "20 feb 1988"
48
49            r.timestamp map=soils date=none
50       Removes the timestamp for the "soils" raster map
51

TIMESTAMP FORMAT

53       The  timestamp  values  must  use  the format as described in the GRASS
54       datetime library.  The source tree  for  this  library  should  have  a
55       description  of  the format. For convience, the formats as of Feb, 1996
56       are reproduced here:
57
58       There are two types of datetime values: absolute and relative. Absolute
59       values  specify  exact  dates  and/or times.  Relative values specify a
60       span of time. Some examples will help clarify:
61
62       Absolute
63
64       The general format for absolute values is:
65
66       day month year [bc] hour:minute:seconds timezone
67
68       day is 1-31
69       month is jan,feb,...,dec
70       year is 4 digit year
71       [bc] if present, indicates dates is BC
72       hour is 0-23 (24 hour clock)
73       mintue is 0-59
74       second is 0-59.9999 (fractions of second allowed)
75       timezone is +hhmm or -hhmm (eg, -0600)
76
77       parts can be missing
78
79       1994 [bc]
80       Jan 1994 [bc]
81       15 jan 1000 [bc]
82       15 jan 1994 [bc] 10 [+0000]
83       15 jan 1994 [bc] 10:00 [+0100]
84       15 jan 1994 [bc] 10:00:23.34 [-0500]
85
86       Relative
87
88       There are two types of relative datetime values, year- month  and  day-
89       second.     The formats are:
90
91       [-] # years # months
92       [-] # days # hours # minutes # seconds
93
94       The  words  years,  months,  days,  hours, minutes, seconds are literal
95       words, and the # are the numeric values.
96       Examples:
97
98       2 years
99       5 months
100       2 years 5 months
101       100 days
102       15 hours 25 minutes 35.34 seconds
103       100 days 25 minutes
104       1000 hours 35.34 seconds
105
106       The following are illegal because it mixes  year-month  and  day-second
107       (because the number of days in a month or in a year vary):
108
109       3 months 15 days
110       3 years 10 days
111

SEE ALSO

113       v.timestamp
114

BUGS

116       Spaces in the timestamp value are required.
117

AUTHOR

119       Michael Shapiro,
120       U.S.Army Construction Engineering Research Laboratory
121
122       Last changed: $Date: 2003-05-06 18:15:08 +0200 (Tue, 06 May 2003) $
123
124       Full index
125
126       © 2003-2008 GRASS Development Team
127
128
129
130GRASS 6.3.0                                                     r.timestamp(1)
Impressum