Harrissou Sant-anna f75a0cc4da Various fixes on date functions help
including replacement of todate and tointerval, use of third person
conjugation and addition/fix of examples
2019-09-27 17:44:11 +10:00

14 lines
637 B
Plaintext

{
"name": "to_time",
"type": "function",
"description": "Converts a string into a time object. An optional format string can be provided to parse the string; see <a href='https://doc.qt.io/qt-5/qtime.html#fromString-1'>QTime::fromString</a> for additional documentation on the format.",
"arguments": [
{"arg":"string","description":"string representing a time value"},
{"arg":"format","optional":true,"description":"format used to convert the string into a date"}
],
"examples": [
{ "expression":"to_time('12:30:01')", "returns":"12:30:01"},
{ "expression":"to_time('12:34','HH:mm')", "returns":"12:34:00"}
]
}