Thursday, June 3, 2010

Re: timeHelper

Here is a workaround for anyone who is interested.

$timestamp = date("F j, Y, g:ia", strtotime(PATH-TO-DATA));

Then use $timestamp in the echo statements.

Still would love to know if it is possible with the helpers though.

Thanks

On Jun 3, 6:17 pm, bradmaxs <b...@pezzano.com> wrote:
> Thanks Matt.
>
> I was wondering if there is some automagic to do this that I can
> combine with niceShort.  I was using that for formatting the time but
> might have to use straight PHP instead.
>
> Thanks,
>
> Brad
>
> On Jun 2, 8:09 pm, Matthew Powell <php...@gmail.com> wrote:
>
> >http://php.net/strftime
>
> > Matt
>
> > On Wed, Jun 2, 2010 at 18:48, bradmaxs <b...@pezzano.com> wrote:
> > > Does anyone know if there is a way to convert the military time output
> > > of the niceShort method to standard time?
>
> > > Example: 13:54:01 to 1:54pm.
>
> > > Thank you,
>
> > > Brad
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions.
>
> > > You received this message because you are subscribed to the Google Groups "CakePHP" group.
> > > To post to this group, send email to cake-php@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: