Page 1 of 1

Use of XY(x,y) - Time Format Data?

Posted: Wed Jun 22, 2005 2:22 pm
by raswaim
When using the XY(x,y) macro command to add points, is it possible to specify the x coordinate in a time format (e.g. XY(3:05:22, 7) ), and if so, what is the required syntax?

Posted: Wed Jun 22, 2005 5:59 pm
by DPlotAdmin
Richard,
That's not possible currently. I'll add it to the to-do list. The format will likely be fairly strict; a colon will be an absolute requirement. All of these would work for 5:58PM:

5:58:00 PM
5:58:00 pm
5:58 PM
05:58 PM
17:58

Posted: Thu Jun 23, 2005 8:38 am
by raswaim
Hmmm... doesn't look like you accept hex either.... Well if it's not already a capability of XY, rather than complicating and potentially slowing down that code, maybe an alternative would be adding another call with some additional flexibility. Something like an XY_Formatted(x,y) where the formats for both X and Y can be previously set with something like C-style scanf parameters (plus time formatting extensions)? Or I suppose just adding a call to set the expected syntax for the existing XY command would work (only slowing down XY if a non-default was set).

BTW - in your strict syntax, would 5:58:00.123456 be allowed to give me microsecond resolution?

Thanks - Richard

Posted: Thu Jun 23, 2005 5:30 pm
by DPlotAdmin
BTW - in your strict syntax, would 5:58:00.123456 be allowed to give me microsecond resolution?
Yes (now that you mentioned it :-))