You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Simon Brown <Si...@openwave.com> on 2007/08/14 10:59:41 UTC

date in readable format

Hi,

 

In my JMX file I have the following print statement in the beanshell
listener:

 

print(sampleResult.getTimeStamp());

 

Is it possible to print this out in dd/mm/yy hh:mm:ss format?

 

Thanks,

 

Simon


RE: date in readable format

Posted by Simon Brown <Si...@openwave.com>.
Hi Sebb,

Many thanks indeed!  That worked a treat!

Simon

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: 14 August 2007 10:35
To: JMeter Users List
Subject: Re: date in readable format

The timestamp is a long in milliseconds since the epoch.

Just use the Java Date routines to convert it.

On 14/08/07, Simon Brown <Si...@openwave.com> wrote:
> Hi,
>
>
>
> In my JMX file I have the following print statement in the beanshell
> listener:
>
>
>
> print(sampleResult.getTimeStamp());
>
>
>
> Is it possible to print this out in dd/mm/yy hh:mm:ss format?
>
>
>
> Thanks,
>
>
>
> Simon
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: date in readable format

Posted by sebb <se...@gmail.com>.
The timestamp is a long in milliseconds since the epoch.

Just use the Java Date routines to convert it.

On 14/08/07, Simon Brown <Si...@openwave.com> wrote:
> Hi,
>
>
>
> In my JMX file I have the following print statement in the beanshell
> listener:
>
>
>
> print(sampleResult.getTimeStamp());
>
>
>
> Is it possible to print this out in dd/mm/yy hh:mm:ss format?
>
>
>
> Thanks,
>
>
>
> Simon
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org