[support] php strtotime syntax??

Wipe_Out wipe_out at users.sourceforge.net
Tue Mar 12 17:10:26 UTC 2013


Hmmm.. Could have sworn I tried that phrase too.. But yes, its works..
Thanks.. :)


On 12 March 2013 16:23, <kenrbnsn at rbnsn.com> wrote:

> On 12.03.2013 11:40, Wipe_Out wrote:
> > Hi,
> >
> > I am trying to crate a rule that has a condition so it will only work
> > between the last Sunday of March and the last Sunday or November to
> > coincide with British Summer Time (BST)..
> >
> > I have tried things like "march last sunday", "april last sunday"
> > etc. but can't seem to get the last Sunday of the March..
> >
> > Anyone have any ideas?
> >
> > Thanks
>
> echo date('Y-m-d',strtotime('last sunday of march'));
>
> and
>
> echo date('Y-m-d',strtotime('last sunday of november'));
>
> works for me.
>
> Ken
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130312/ec8b6688/attachment.html 


More information about the support mailing list