Skip to content

Commit 89ec2a6

Browse files
committed
Make $system.SQL.DATE* examples more consistent
Thanks to Joel!
1 parent 6b37b44 commit 89ec2a6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

COSQuickRef.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ A list of some common ObjectScript expressions
5959

6060
| Action | Code |
6161
|--------------------------------------------------|-------------------------------------------------------------|
62-
| Date conversion (external → internal) | `Set variable = $zdh("mm/dd/yyyy")` |
63-
| Date conversion (internal → external) | `Set variable = $zd(internalDate, format)` |
64-
| Time conversion (external → internal) | `Set variable = $zth("hh:mm:ss")` |
65-
| Time conversion (internal → external) | `Set variable = $zt(internalTime, format)` |
66-
| Display current internal date/time string | `Write $horolog` |
67-
| Display UTC date/time string | `Write $ztimestamp` |
68-
| Get the date relative to other date (any type) | `write $system.SQL.DATEADD("hh", -4, "2015-08-10 19:32:45")`<br>Results `2015-08-10 15:32:45` |
69-
| Get the difference between two dates (any type) | `$system.SQL.DATEDIFF("hh", "63774", "63775,12441")`<br>Results `27` |
62+
| Date conversion (external → internal) | `Set variable = $zdh("mm/dd/yyyy")` |
63+
| Date conversion (internal → external) | `Set variable = $zd(internalDate, format)` |
64+
| Time conversion (external → internal) | `Set variable = $zth("hh:mm:ss")` |
65+
| Time conversion (internal → external) | `Set variable = $zt(internalTime, format)` |
66+
| Display current internal date/time string | `Write $horolog` |
67+
| Display UTC date/time string | `Write $ztimestamp` |
68+
| Get the date relative to other date (any type) | `Write $system.SQL.DATEADD("hh", -4, "yyyy-mm-dd hh:mm:ss")` |
69+
| Get the difference between two dates (any type) | `Write $system.SQL.DATEDIFF("hh", horolog-or-ztimestamp, horolog-or-ztimestamp)`|
7070

7171
## ObjectScript Branching Functions
7272

0 commit comments

Comments
 (0)