jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From FSchumacher <...@git.apache.org>
Subject [GitHub] jmeter pull request #291: Add time shifting function
Date Wed, 26 Apr 2017 19:26:54 GMT
Github user FSchumacher commented on a diff in the pull request:

    https://github.com/apache/jmeter/pull/291#discussion_r113541037
  
    --- Diff: xdocs/usermanual/functions.xml ---
    @@ -1499,6 +1502,36 @@ becomes:
     </properties>
     </component>
     
    +
    +<component index="&sect-num;.5.22" name="__timeShifting">
    +<description>
    +    <p>The timeShifting function returns a date in various formats with the specified
amount of seconds/minutes/hours/days/months added</p>
    +    </description>
    +<properties>
    +        <property name="Format" required="No">
    +        The format to be passed to DateTimeFormatter.
    +        If omitted, the function use milliseconds since epoch format.
    +        </property>
    +        <property name="Date to shift" required="No">
    +        Indicate the date with the format from first paramater to shift
    +        If omitted, the date is set to now
    +        </property>
    +        <property name="value to shift" required="No">
    +        Indicate the specified amount of seconds/minutes/hours/days/mounths to add according
to this usage :
    +        <ul>
    +        <li><code>5s</code> for Second value</li>
    +        <li><code>5m</code> for Minute value</li>
    +        <li><code>5H</code> for Hour value</li>
    +        <li><code>5d</code> for Day value</li>
    +        <li><code>5M</code> for Month value</li>
    +        </ul>
    +        To shift in the pass, you just have to indicate <code>-5d</code>
 to remove 5 days.
    --- End diff --
    
    Would it be useful, to specify more complex amount of times like `5d7H` or `5 days 7 minutes`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message