Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Are you looking for something like PHPs <a href="http://au.php.net/strtotime" rel="nofollow noreferrer">strtotime</a>? That will give you the unix timestamp of almost anything you can throw at it. </p> <p>From the php site:</p> <pre><code>&lt;?php echo strtotime("now"), "\n"; echo strtotime("10 September 2000"), "\n"; echo strtotime("+1 day"), "\n"; echo strtotime("+1 week"), "\n"; echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n"; echo strtotime("next Thursday"), "\n"; echo strtotime("last Monday"), "\n"; ?&gt; </code></pre> <p>.NET's date classes require much more arcane fiddling with <a href="http://msdn.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.aspx" rel="nofollow noreferrer">DateTimeFormatInfo</a> and the like to parse date strings that aren't nearly as complicated as strtotime can handle.</p> <p>PHP provides a DateTime class and a DateTimeZone class as of PHP 5, but they're both quite poorly documented. I still mostly use unix timestamps and the <a href="http://au.php.net/date" rel="nofollow noreferrer">date</a>, <a href="http://au.php.net/time" rel="nofollow noreferrer">time</a> and <a href="http://au.php.net/strtotime" rel="nofollow noreferrer">strtotime</a> functions as I haven't fully come to grips with the new objects.</p> <p>The following links attempt to flesh out DateTime and DateTimeZone a bit better:</p> <ul> <li><a href="http://laughingmeme.org/2007/02/27/" rel="nofollow noreferrer">http://laughingmeme.org/2007/02/27/</a></li> <li><a href="http://maetl.coretxt.net.nz/datetime-in-php" rel="nofollow noreferrer">http://maetl.coretxt.net.nz/datetime-in-php</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload