Convert date and time to a number to chart

Sarah sarahr at genesearch.com.au
Tue May 14 19:13:01 EDT 2002


I had a similar need for charting with a time scale, but Ken's chart 
object requires all data to be numeric. I converted all my time stamps 
to seconds format so they could be drawn correctly and then edited the 
chart script so that when displaying the tick marks on the time axis, it 
converts the relevant time stamps back to my preferred date format for 
display purposes only.

Sarah


On Wednesday, May 15, 2002, at 10:04  am, Bill Vlahos wrote:

> I'm writing a program to analyze log files and draw charts from the 
> data using Ken Simons' excellent object (available from the runrev web 
> site).
>
> The log files are rolled each day so only one day's data is in each 
> file and I've been able to easily convert the time of day to decimal 
> hours (0 to 24) and plot them. However I want to combine any number of 
> day's files and have them represented by a number which makes sense.
>
> To plot the X values in Ken's object all I need to do is provide a 
> comma delimited set of numbers and it will take those and plot them.
>
> Any suggestions?
>
> Bill Vlahos
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>





More information about the use-livecode mailing list