Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15693

strtotime peculiarities

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Derek Turner <frderek@suremail.je>
Newsgroups comp.lang.php
Subject strtotime peculiarities
Date 6 Oct 2015 12:59:25 GMT
Lines 14
Message-ID <d7hutdFt2bbU1@mid.individual.net> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace individual.net OZbK7jv3AvLrYz0o35VHIQ9FJ1ArFZs+eUaBr2pl90LPs6haZM
Cancel-Lock sha1:KZR8RorARgYCbg3cTTYdnGOleWY=
User-Agent Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
Xref csiph.com comp.lang.php:15693

Show key headers only | View raw


<code>
echo date ("D j M Y H:i",strtotime("third Monday of February 14:00"))
</code>

echoes:

Mon 16 Feb 2015 00:54 (when run at 13.54 UTC+1)

so it seems to correctly identify and echo the date but is giving some 
sort of relative time.

Is there a way of getting to echo the desired

Mon 16 Feb 2015 14:00?

Back to comp.lang.php | Previous | NextNext in thread | Find similar | Unroll thread


Thread

strtotime peculiarities Derek Turner <frderek@suremail.je> - 2015-10-06 12:59 +0000
  Re: strtotime peculiarities Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-10-06 16:23 +0200
    Re: strtotime peculiarities Jordan Doyle <jordan@doyle.wf> - 2015-10-08 01:00 +0000
  Re: strtotime peculiarities Jerry Stuckle <jstucklex@attglobal.net> - 2015-10-06 11:18 -0400

csiph-web