![]() |
![]()
| ![]() |
![]()
NAMEr.timestamp - Modifies a timestamp for a raster map.
KEYWORDSraster, metadata, timestamp, time SYNOPSISr.timestamp
Flags:Parameters:
DESCRIPTIONr.timestamp has two modes of operation. If no date argument is supplied, then the current timestamp for the raster map is printed. If a date argument is specified, then the timestamp for the raster map is set to the specified date(s). See examples below. NOTESStrings containing spaces should be quoted. For specifying a range of time, the two timestamps should be separated by a forward slash. To remove the timestamp from a raster map, use date=none. TIMESTAMP FORMATThe timestamp values must use the format as described in the GRASS Datetime Library. The source tree for this library should have a description of the format. For convenience, the formats are reproduced here: There are two types of datetime values:
AbsoluteThe general format for absolute values is:
Some parts can be missing, for example
RelativeThere are two types of relative datetime values, year-month and
day-second. The formats are:
The words years, months, days, hours, minutes, seconds are literal
words, and the # are the numeric values. Examples:
The following are illegal because it mixes year-month and
day-second (because the number of days in a month or in a year vary):
EXAMPLESPrints the timestamp for the "soils" raster map. If
there is no timestamp for "soils", nothing is printed. If there is
a timestamp, one or two time strings are printed, depending on if the
timestamp for the map consists of a single date or two dates (ie start and
end dates).
r.timestamp map=soils Sets the timestamp for "soils" to the single date
"15 sep 1987".
r.timestamp map=soils date=’15 sep 1987’ Sets the timestamp for "soils" to have the start date
"15 sep 1987" and the end date "20 feb 1988".
r.timestamp map=soils date=’15 sep 1987/20 feb 1988’ Sets the timestamp for "soils" to have the start date
"18 feb 2005 10:30:00" and the end date "20 jul 2007
20:30:00".
r.timestamp map=soils date=’18 feb 2005 10:30:00/20 jul 2007 20:30:00’ Removes the timestamp for the "soils" raster map.
r.timestamp map=soils date=none KNOWN ISSUESSpaces in the timestamp value are required. SEE ALSOr.info, r3.timestamp, v.timestamp AUTHORMichael Shapiro, U.S.Army Construction Engineering Research Laboratory SOURCE CODEAvailable at: r.timestamp source code (history) Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d Main index | Raster index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|