Date Operators

ago, hence, from now

Behavior: The ago and hence operators produce a date/time value that is the specified length of time in the past or future, respectively. Note that from now can be used as a synonym for hence.

TimeInterval is typically given as a time interval value (see Time Intervals in Values). However, it can actually be any value or an expression in parentheses that yields a number, which will be treated as the number of seconds. The ago operator results in a time value that is the indicated length of time earlier than the present moment (in the past). The hence operator yields a time value that is the indicated length of time later than the present moment (in the future). The resulting value is set to use the Abbreviated International Time format when it is converted to text.

Syntax:

timeInterval ago

timeInterval hence

Note: SenseTalk is not case-sensitive.

Example:

put three minutes hence into expirationTime

Example:

if modificationDate of file updateLog is earlier than 5 days ago then ...

 

This topic was last updated on March 12, 2020, at 07:26:53 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2020 Eggplant