$addticks
Welcome to our Knowledge Base
Documentation | Blog | Demos | Support
< All Topics
Print
$addticks
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Calculates a time value by adding ticks to (or subtracting ticks from) a specified time value.
Syntax
$addticks(time,number)
Parameters
time | an 8-digit number, or an expression that evaluates to an 8-digit number, that expresses a valid time value in the format HHMMSSTT |
number | a number, or an expression that evaluates to a number |
Return Value
Number, representing a time value.
Comments
Use $addticks to perform arithmetic with time values. The $addticks function calculates a time value by adding a number representing ticks to a time value. If number is negative, the effect is to subtract the ticks from the time.
Example
If $Time has the value 22503075, then
$addticks($time,5)
evaluates to 22503080.
$addticks($time,25)
evaluates to 22503100.
$addticks($time,-5)
evaluates to 22503070.
$addticks($time,200)
evaluates to 22503275.
See Also
Updated
ByJason Lee
Was this article helpful?
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
5