SimpleDateFormat allows _quoted_ text. i.e. format='abcd' not format=abcd
I did not mean to suggest that anyone would use such a format; I was trying to establish the limits of what was sensible. On 8 May 2016 at 20:49, Philippe Mouawad <[email protected]> wrote: > On Sunday, May 8, 2016, Felix Schumacher <[email protected]> > wrote: > >> >> >> Am 8. Mai 2016 20:42:31 MESZ, schrieb Philippe Mouawad < >> [email protected] <javascript:;>>: >> >Hi, >> >If I take SimpleDateFormat docs, it would mean something like: >> >PMbc10 between 10 PM and 11PM. >> > >> >I wonder why would somebody set such a format in JMeter. >> >> Never underestimate the creativity of the user ;) >> >> :) > >> Felix >> > >> >Regards >> >Philippe >> > >> >On Sun, May 8, 2016 at 8:29 PM, Philippe Mouawad >> ><[email protected] <javascript:;> >> >> wrote: >> > >> >> Thanks Felix, >> >> But my question was what the format 'abcd' use ? >> >> >> >> As you know if a user enters 'current time is HH:mm' in this >> >property, it >> >> will work also. >> >> But 'abcd' is weird for me. >> >> >> >> Thanks >> >> Regards >> >> >> >> >> >> On Sunday, May 8, 2016, Felix Schumacher < >> >> [email protected] <javascript:;>> wrote: >> >> >> >>> >> >>> >> >>> Am 8. Mai 2016 14:45:18 MESZ, schrieb Philippe Mouawad < >> >>> [email protected] <javascript:;>>: >> >>> >On Sun, May 8, 2016 at 2:32 PM, sebb <[email protected] <javascript:;>> >> wrote: >> >>> > >> >>> >> On 8 May 2016 at 13:13, Philippe Mouawad >> ><[email protected] <javascript:;>> >> >>> >> wrote: >> >>> >> > On Sun, May 8, 2016 at 1:37 PM, sebb <[email protected] >> <javascript:;>> wrote: >> >>> >> > >> >>> >> >> On 8 May 2016 at 12:16, Philippe Mouawad >> >>> ><[email protected] <javascript:;>> >> >>> >> >> wrote: >> >>> >> >> > It's a formulation error. >> >>> >> >> > This format is supported >> >>> >> >> >> >>> >> >> But are there any formats which are not supported? >> >>> >> >> >> >>> >> > >> >>> >> > It accepts : >> >>> >> > ms >> >>> >> > of any SimpleDateFormat >> >>> >> >> >> >>> >> >> For example, how about this: >> >>> >> >> >> >>> >> >> jmeter.save.saveservice.timestamp_format='abcd' >> >>> >> >> >> >>> >> > It won't work with this, but what is this format ? Is this an >> >>> >acceptable >> >>> >> > SimpleDateFormat ? >> >>> >> >> >>> >> Yes. Fixed text is allowed in single quotes. >> >>> >> >> >>> >ok, but why would somebody use such format ? >> >>> >> >>> You can use it to form a complete sentence with time information, >> >e.g. >> >>> "The current time is HH:MM." >> >>> >> >>> That way you don't have to concatenate the formatted time to your >> >static >> >>> text. >> >>> >> >>> Regards, >> >>> Felix >> >>> >> >>> > >> >>> >> >> >>> >> >> >> >>> >> >> I suspect that may not be supported as it is does not provide >> >any >> >>> >time >> >>> >> >> information. >> >>> >> >> >> >>> >> >> Does the format have to include both date and time? >> >>> >> >> >> >>> >> > See NormalizerSampleConsumer >> >>> >> >> >>> >> That extracts the time from a Date which is parsed from the >> >>> >timestamp. >> >>> >> >> >>> >> It does not tell me how the time is used. >> >>> >> >> >>> > >> >>> > >> >>> >> >> >>> >> Since the code uses a default of HH:mm:ss I assume that it does >> >not >> >>> >> care if the date information is missing. >> >>> >> >> >>> >> But does it care if the time information is missing, i.e. what >> >about: >> >>> >> >> >>> >> jmeter.save.saveservice.timestamp_format = yyyy/MM/dd >> >>> >> >> >>> >> I suspect that would produce graphs that aren't very useful. >> >>> >> >> >>> >Yes. >> >>> >So documentation should mention to add time. >> >>> >For me it's the same as with old listeners and graphs generation. >> >>> >If there is no time, graphs are useless. >> >>> > >> >>> > >> >>> > >> >>> >> >> >>> >> >> Does the code support 'ms' (i.e. epoch timestamp)? >> >>> >> >> >> >>> >> > yes >> >>> >> > >> >>> >> >> >> >>> >> >> One needs to know that info in order to clarify the text. >> >>> >> >> >> >>> >> >> >> >>> >> >> > On Sunday, May 8, 2016, sebb <[email protected] <javascript:;>> >> wrote: >> >>> >> >> > >> >>> >> >> >> The generating-dashboard.html page includes the following >> >text: >> >>> >> >> >> >> >>> >> >> >> # You can use any other format than the one shown here >> >>> >> >> >> jmeter.save.saveservice.timestamp_format = yyyy/MM/dd >> >HH:mm:ss >> >>> >> >> >> >> >>> >> >> >> >> >>> >> >> >> The way I read this initially, all formats *apart* from the >> >one >> >>> >shown >> >>> >> >> are >> >>> >> >> >> OK. >> >>> >> >> >> I suspect that is not the intention. >> >>> >> >> >> >> >>> >> >> >> Are there any formats that are not supported? >> >>> >> >> >> >> >>> >> >> > >> >>> >> >> > >> >>> >> >> > -- >> >>> >> >> > Cordialement. >> >>> >> >> > Philippe Mouawad. >> >>> >> >> >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> > -- >> >>> >> > Cordialement. >> >>> >> > Philippe Mouawad. >> >>> >> >> >>> >> >>> >> >> >> >> -- >> >> Cordialement. >> >> Philippe Mouawad. >> >> >> >> >> >> >> >> >> >> > > -- > Cordialement. > Philippe Mouawad.
