Yes your idea will work in AF.
Just keep in mind that the input start/end time should be with a DataType of DateTime. If you input '*-10m' in the function directly, the conversion to DateTime will be done automatically. If you have '*-10m' in an attribute value with a string data type, then you will need to use ParseTime() to convert the value from string to DateTime.
Hope this helps,
1 of 1 people found this helpful
If you want relative time offsets, you would put those in single quotes AND preface it with a Plus or Negative sign. Personally, I use positive for offsets and then subtract them to go backwards in time. Examples:
The single quotes are used for time OR time offsets. If the first character is a + or - sign, it denotes a time offset. You would then use that offset from a given time (such as '*', 't', 'y') to generate yet another time. Example:
- '*' - '+5m'
Hello Mr. Sebastien Raposo,
This is exactly what i was looking for, thanks a lot for your help!!!