[PHP] Awkward time processing

2012-08-02 Thread Paul Halliday
This is hideous, can anyone think of a more novel approach? What I have is an array of values and timestamps: 17 15:31 16 15:32 27 15:33 14 15:34 11 15:35 now for a day I should have 1440 entries but there could be spotty results, no data from say 11:59 - 13:00. What I need is to sum the values

Re: [PHP] Awkward time processing

2012-08-02 Thread Ashley Sheridan
Paul Halliday paul.halli...@gmail.com wrote: This is hideous, can anyone think of a more novel approach? What I have is an array of values and timestamps: 17 15:31 16 15:32 27 15:33 14 15:34 11 15:35 now for a day I should have 1440 entries but there could be spotty results, no data from say

Re: [PHP] Awkward time processing

2012-08-02 Thread Paul Halliday
On Thu, Aug 2, 2012 at 12:27 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Paul Halliday paul.halli...@gmail.com wrote: This is hideous, can anyone think of a more novel approach? What I have is an array of values and timestamps: 17 15:31 16 15:32 27 15:33 14 15:34 11 15:35 now for a

Re: [PHP] Awkward time processing

2012-08-02 Thread Robert Williams
On 8/2/12 05:51, Paul Halliday paul.halli...@gmail.com wrote: What I have is an array of values and timestamps: 17 15:31 16 15:32 27 15:33 14 15:34 11 15:35 now for a day I should have 1440 entries but there could be spotty results, no data from say 11:59 - 13:00. What I need is to sum the

Re: [PHP] Awkward time processing

2012-08-02 Thread Paul Halliday
:) Perfect! Thank you. On Thu, Aug 2, 2012 at 1:25 PM, Robert Williams rewilli...@thesba.com wrote: On 8/2/12 05:51, Paul Halliday paul.halli...@gmail.com wrote: What I have is an array of values and timestamps: 17 15:31 16 15:32 27 15:33 14 15:34 11 15:35 now for a day I should have 1440