r3.timestamp.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <H2>DESCRIPTION</H2>
  2. This command has 2 modes of operation. If no date argument
  3. is supplied, then the current timestamp for the grid3d map
  4. is printed. If a date argument is specified, then the
  5. timestamp for the grid3d map is set to the specified
  6. date(s). See EXAMPLES below.
  7. <H2>EXAMPLES</H2>
  8. <b>r3.timestamp map=soils</b><br>
  9. Prints the timestamp for the "soils" grid3d map. If
  10. there is no timestamp for soils, nothing is printed. If
  11. there is a timestamp, one or two lines are printed,
  12. depending on if the timestamp for the map consists of a
  13. single date or two dates (ie start and end dates).
  14. <p>
  15. <b> r3.timestamp map=soils date='15 sep 1987'</b><br>
  16. Sets the timestamp for "soils" to the single date<br>
  17. "15 sep 1987"
  18. <p>
  19. <b> r3.timestamp map=soils date='15 sep 1987/20 feb 1988'</b><br>
  20. Sets the timestamp for "soils" to have the start date<br>
  21. "15 sep 1987" and the end date "20 feb 1988"
  22. <p>
  23. <b> r3.timestamp map=soils date='18 feb 2005 10:30:00/20 jul 2007 20:30:00'</b><br>
  24. Sets the timestamp for "soils" to have the start date<br>
  25. "18 aug 2005 10:30:00" and the end date "20 jul 2007 20:30:00"
  26. <p>
  27. <b> r3.timestamp map=soils date=none</b><br>
  28. Removes the timestamp for the "soils" grid3d map
  29. <H2>TIMESTAMP FORMAT</H2>
  30. The timestamp values must use the format as described in the
  31. GRASS datetime library. The source tree for this library
  32. should have a description of the format. For convience, the
  33. formats as of Feb, 1996 are reproduced here:
  34. <p>
  35. There are two types of datetime values: absolute and
  36. relative. Absolute values specify exact dates and/or times.
  37. Relative values specify a span of time. Some examples will
  38. help clarify:
  39. <p>
  40. <b> Absolute</b><p>
  41. The general format for absolute values is
  42. <p><tt>
  43. day month year [bc] hour:minute:seconds timezone
  44. <br>
  45. day is 1-31<br>
  46. month is jan,feb,...,dec<br>
  47. year is 4 digit year<br>
  48. [bc] if present, indicates dates is BC<br>
  49. hour is 0-23 (24 hour clock)<br>
  50. mintue is 0-59<br>
  51. second is 0-59.9999 (fractions of second allowed)<br>
  52. timezone is +hhmm or -hhmm (eg, -0600)<br>
  53. <br>
  54. parts can be missing
  55. <br>
  56. 1994 [bc]<br>
  57. Jan 1994 [bc]<br>
  58. 15 jan 1000 [bc]<br>
  59. 15 jan 1994 [bc] 10 [+0000]<br>
  60. 15 jan 1994 [bc] 10:00 [+0100]<br>
  61. 15 jan 1994 [bc] 10:00:23.34 [-0500]<br>
  62. <br>
  63. </tt>
  64. <b> Relative</b>
  65. There are two types of relative datetime values, year-
  66. month and day-second. The formats are:
  67. <p><tt>
  68. [-] # years # months<br>
  69. [-] # days # hours # minutes # seconds
  70. </tt><p>
  71. The words years, months, days, hours, minutes, seconds
  72. are literal words, and the # are the numeric values.<br>
  73. Examples:<p>
  74. <tt>
  75. 2 years<br>
  76. 5 months<br>
  77. 2 years 5 months<br>
  78. 100 days<br>
  79. 15 hours 25 minutes 35.34 seconds<br>
  80. 100 days 25 minutes<br>
  81. 1000 hours 35.34 seconds
  82. </tt><p>
  83. The following are <i>illegal</i> because it mixes year-month
  84. and day-second (because the number of days in a month
  85. or in a year vary):<p>
  86. <tt>
  87. 3 months 15 days<br>
  88. 3 years 10 days
  89. </tt>
  90. <H2>BUGS</H2>
  91. Spaces in the timestamp value are required.
  92. <H2>AUTHOR</H2>
  93. Michael Pelizzari<br>
  94. Lockheed Martin Space Systems<br>
  95. based on r.timestamp by Michael Shapiro, <br>
  96. U.S.Army Construction Engineering Research Laboratory
  97. <p><i>Last changed: $Date$</i>