Water 5-Common Data Types-Date and Time
method datetime.minus
Subtract a duration or datetime from a datetime
Contract
Return typewob
Parameter keyDefault valueType
duration_or_datetimereq
Water Contract
<method datetime.minus
  duration_or_datetime=req/>

See also: duration, plus

Subtracts duration_or_datetime of type duration from the _subject of type datetime , giving a new datetime as the result.
Example: Subtracting two months from a datetime
<datetime 2006 08 16 0 0 0 0 />.<minus <duration months=2.0 /> />.<to_htm />
"Jun 16, 2006"
This method may also be used to determine the difference between two datetimes by passing duration_or_datetime of type datetime . The result will be of type duration .
Example: Subtracting one datetime from another
<datetime 2006 08 16 0 0 0 0 />.<minus <datetime 2006 06 16 0 0 0 0 /> />
<duration days=61/>