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 wrote: > On 8/2/12 05:51, "Paul Halliday" 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

Re: [PHP] Awkward time processing

2012-08-02 Thread Robert Williams
On 8/2/12 05:51, "Paul Halliday" 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 values for ea

Re: [PHP] Awkward time processing

2012-08-02 Thread Paul Halliday
On Thu, Aug 2, 2012 at 12:27 PM, Ashley Sheridan wrote: > > > Paul Halliday 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

Re: [PHP] Awkward time processing

2012-08-02 Thread Ashley Sheridan
Paul Halliday 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 11:59 -> 13