Converts the specified string representation of a date and time to its TimeTag equivalent.
Declaration Syntax
Parameters
- timetag (String)
- A string containing the date and time to convert.
Return Value
A TimeTag object.
Remarks
timetag can be specified in one of the following format:
Time Format | Format Description |
---|---|
12-30-2000 23:59:59 | Absolute date and time. |
* | Evaluates to UtcNow. |
*-20s | Evaluates to 20 seconds before UtcNow. |
*-10m | Evaluates to 10 minutes before UtcNow. |
*-1h | Evaluates to 1 hour before UtcNow. |
*-1d | Evaluates to 1 day before UtcNow. |