TC Date operations
This Module enables you to create time stamps and to convert date values by using defined date and time formats.
For further information on licenses, please contact Tricentis Support. |
The TC Date operations Module contains the following attributes:
ModuleAttribute |
Description |
---|---|
Date |
The date value to be converted is specified here and is converted using the date declarations specified in the Source format and Target format attributes. The result of this operation can either be verified with the Result attribute or written to a buffer. ActionMode: Input |
Source format |
The format of the date value must be specified here in order to convert the date value specified in the Date attribute. ActionMode: Input |
Target format |
The target format must be specified here in order to convert the date value specified in the Date attribute. ActionMode: Input |
Result |
The result of the conversion can be verified with the specified value or the content of the buffer specified here. It can also be written to a buffer. For this purpose, the following relational operators can be used: = and !=. ActionMode: Buffer, Verify |
TC Date operations Module
Syntax for specifying the format
The date formats in the TestStepValues Source format and Target format must contain the following elements:
-
YYYY: year, four digits
-
MM: month, two digits (01=January)
-
DD: day, two digits (01 to 31)
-
hh: hour, two digits (00 to 23)
-
mm: minute, two digits (00 to 59)
-
ss: second, two digits (00 to 59)
-
Delimiters (period, slash, colon...)
The date 26.03.2013 is converted and the result (2013/03/26) is verified.
Example - TC Date operations |