@@ -59,14 +59,14 @@ A list of some common ObjectScript expressions
59
59
60
60
| Action | Code |
61
61
| --------------------------------------------------| -------------------------------------------------------------|
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) ` |
70
70
71
71
## ObjectScript Branching Functions
72
72
0 commit comments