Skip to content
Permalink
Browse files

Apply suggestions from code review

Co-authored-by: Håvard Tveite <havard.tveite@nmbu.no>
  • Loading branch information
2 people authored and nyalldawson committed Jul 21, 2020
1 parent ea6c044 commit fe9e14a5dd3e5878dee645cb75ed0f9ea2246679
@@ -1,5 +1,5 @@
{
"name": "Form",
"type": "group",
"description": "This group contains functions that operate exclusively under the attribute form context. For example, in field's widgets settings."
"description": "This group contains functions that are only available in the attribute form context. For example, in field widget settings."
}
@@ -1,5 +1,5 @@
{
"name": "Processing",
"type": "group",
"description": "This group contains functions that operate exclusively under the processing algorithms context."
"description": "This group contains functions that are only available in the processing algorithms context."
}
@@ -2,7 +2,7 @@
"name": "age",
"type": "function",
"groups": ["Date and Time"],
"description": "Returns the difference between two dates or datetimes.<br>The difference is returned as an <code>Interval</code> and needs to be used with one of the following functions in order to extract useful information:<br /><ul><li><code>year</code></li><li><code>month</code></li><li><code>week</code></li><li><code>day</code></li><li><code>hour</code></li><li><code>minute</code></li><li><code>second</code></ul>",
"description": "Returns the difference between two dates or datetimes.<br>The difference is returned as an <code>Interval</code> and needs to be used with one of the following functions in order to extract useful information:<br /><ul><li><code>year</code></li><li><code>month</code></li><li><code>week</code></li><li><code>day</code></li><li><code>hour</code></li><li><code>minute</code></li><li><code>second</code></li></ul>",
"arguments": [ {"arg":"datetime1","description":"a string, date or datetime representing the later date"},
{"arg":"datetime2","description":"a string, date or datetime representing the earlier date"}],
"examples": [ { "expression":"day(age('2012-05-12','2012-05-02'))", "returns":"10"},

0 comments on commit fe9e14a

Please sign in to comment.
You can’t perform that action at this time.