Nyall Dawson bd9e02be95 Add alias support for expression functions
Standardise naming of all internal functions to lowercase with
underscore convention. Add aliases for old names to avoid
breakage.
2015-05-03 20:57:36 +10:00

14 lines
440 B
Plaintext

<h3>to_interval() function</h3>
Converts a string to a interval type. Can be used to take days, hours, month, etc off a date.
<h4>Syntax</h4>
<code>to_interval('string')</code><br>
<h4>Arguments</h4>
<code>string</code> - is string. Format {n} days {n} hours {n} months
<br>
<h4>Example</h4>
<!-- Show example of function.-->
<code>todatetime('2012-05-05 12:00:00') - to_interval('1 day 2 hours') &rarr; 2012-05-04T10:00:00</code><br>