Nyall Dawson 709c14391b Change expression help from free form html files to structured json
A new script then parses these json help files into the html help
contents, in a standardised manner. Previously, the function help
was a bunch of different formats and structures.

Now, a custom stylesheet can be applied (and later tweaked!) to
format these help. Eg, this commit colors variables and function
names in the syntax section for greater readability.
2015-09-02 14:22:50 +10:00

18 lines
974 B
Plaintext

{
"function": "minute",
"description": "Extract the minutes part from a datetime or time, or the number of minutes from an interval.",
"variants": [
{ "variant": "Time variant",
"variant_description": "Extract the minutes part from a time or datetime.",
"arguments": [ {"arg":"datetime","description":"a time or datetime value"}],
"examples": [ { "expression":"minute('2012-07-22T13:24:57')", "returns":"24"}] },
{
"variant": "Interval variant",
"variant_description": "Calculate the length in minutes of an interval.",
"arguments": [ {"arg":"interval","description":"interval value to return number of minutes from"}],
"examples": [ { "expression":"minute(tointerval('3 minutes'))", "returns":"3"},
{ "expression":"minute(age('2012-07-22T00:20:00','2012-07-22T00:00:00'))", "returns":"20"},
{ "expression":"minute(age('2012-01-01','2010-01-01'))", "returns":"1051200"}]
}]
}