v.timestamp
Modifies a timestamp for a vector map.
Print/add/remove a timestamp for a vector map.
v.timestamp map=name [layer=string] [date=timestamp] [--verbose] [--quiet] [--qq] [--ui]
Example:
v.timestamp map=name
grass.script.run_command("v.timestamp", map, layer="1", date=None, verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("v.timestamp", map="name")
Parameters
map=name [required]
Name of vector map
Or data source for direct OGR access
layer=string
Layer number or name
Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
Default: 1
date=timestamp
Datetime, datetime1/datetime2, or 'none' to remove
Format: '15 jan 1994' (absolute) or '2 years' (relative)
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
map : str, required
Name of vector map
Or data source for direct OGR access
Used as: input, vector, name
layer : str, optional
Layer number or name
Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
Used as: input, layer
Default: 1
date : str, optional
Datetime, datetime1/datetime2, or 'none' to remove
Format: '15 jan 1994' (absolute) or '2 years' (relative)
Used as: timestamp
verbose: bool, optional
Verbose module output
Default: False
quiet: bool, optional
Quiet module output
Default: False
superquiet: bool, optional
Very quiet module output
Default: False
DESCRIPTION
This command has 2 modes of operation. If no date argument is supplied, then the current timestamp for the vector map is printed. If a date argument is specified, then the timestamp for the vector map is set to the specified date(s). See examples below.
See TIMESTAMP FORMAT description for details.
NOTES
Strings 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 vector map, use date=none.
EXAMPLES
Prints the timestamp for the "lidar" vector map. If there is no timestamp for "lidar", 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).
v.timestamp map=lidar
Sets the timestamp for "lidar" to the single date "15 sep 1987".
v.timestamp map=lidar date='15 sep 1987'
Sets the timestamp for "lidar" to have the start date "15 sep 1987" and the end date "20 feb 1988".
v.timestamp map=lidar date='15 sep 1987/20 feb 1988'
Removes the timestamp for the "lidar" vector map.
v.timestamp map=lidar date=none
KNOWN ISSUES
Spaces in the timestamp value are required.
SEE ALSO
v.info, r.timestamp, r3.timestamp
AUTHOR
Michael Shapiro, U.S.Army Construction Engineering Research Laboratory
SOURCE CODE
Available at: v.timestamp source code
(history)
Latest change: Saturday Mar 29 14:59:39 2025 in commit 0bfa813