GetTime
Step In-Place Editing
A Get Time step retrieves the time a test script is run at and returns it in a script variable.
To edit a Get Time script step:
Select the step in the Script Steps table. Edit the step parameters as follows:
- Session: This column displays no session type.
- Return variable: This column displays the name of the script variable that is assigned a time value.
A new variable can be specified by clicking into the column and defining it in-place.
- Command String: This column displays a format stringsimple or compoundused for specifying the returned time information. Supported format strings are listed in Table:GetTime Format Strings:
Table:GetTime Format Strings
String Action %% Inserts a %. %a Inserts an abbreviated weekday name (Mon, Tue, and so on.). %A Inserts a full weekday name (Monday, Tuesday, etc.). %b Inserts an abbreviated month name (Jan, Feb, etc.). %B Inserts a full month name. %c Inserts a locale-specific date and time. The format for date and time in the default "C" locale on Unix or Mac is "%a %b %d %H:%M:%S %Y".On Windows hosts, this value is the locale specific long date and time, as specified in the Regional Options control panel settings. %C Inserts the first two digits of the four-digit year (19 or 20). %d Inserts the day of month (01 - 31). %D Formats the date as %m/%d/%y. %e Inserts the day of month (1 - 31), no leading zeros. %g Inserts the ISO8601 year number corresponding to the ISO8601 week (%V), expressed as a two-digit year-of-the-century, with leading zero if necessary. %G Inserts the ISO8601 year number corresponding to the ISO8601 week (%V), expressed as a four-digit number. %h Inserts the abbreviated month name. %H Inserts the hour in 24-hour format (00 - 23). %I Inserts the hour in 12-hour format (01 - 12). %j Inserts the day of year (001 - 366). %k Inserts the hour in 24-hour format, without leading zeros (0 - 23). %l Inserts the hour in 12-hour format, without leading zeros (1 - 12). %m Inserts the month number (01 - 12). %M Inserts the minute (00 - 59). %n Inserts a newline. %p Inserts an AM or PM indicator. %r Formats the time in a locale-specific "meridian" format. The "meridian" format in the default "C" locale is "%I:%M:%S %p". %R Format the time as %H:%M. %s Inserts the count of seconds since the epoch, expressed as a decimal integer. %S Inserts the count of seconds (00 - 59). %t Inserts a tab. %T Formats the time as %H:%M:%S. %u Inserts the weekday number (Monday = 1, Sunday = 7). %U Inserts the week of the year (00 - 52), Sunday being the first day of the week. %V Inserts the week of the year according to ISO-8601 rules. Week 1 of a given year is the week containing 4 January. %w Inserts the weekday number (Sunday = 0, Saturday = 6). %W Inserts the week of the year (00 - 52), Monday being the first day of the week. %x Uses a locale-specific date format. The format for a date in the default "C" locale for Unix or Mac is "%m/%d/%y". On Windows, this value is the locale specific short date format, as specified in the Regional Options control panel settings. %X Uses a locale-specific 24-hour time format. The format for a 24-hour time in the default "C" locale for Unix or Mac is "%H:%M:%S". On Windows, this value is the locale- specific time format, as specified in the Regional Options control panel settings. %y Inserts the year without century (00 - 99). %Y Inserts the year with century (e.g. 1990) %Z Inserts the time zone name.Click into the column and define an expression by editing it in-place.
IxLoad TestComposer │ User Guide |