Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (10)
  • ESXi (1)
  • Git (4)
  • Javascript (6)
  • Linux (31)
  • Mac (6)
  • Magento (4)
  • Mysql (13)
  • PHP (9)
  • Zend framework 2 (9)
  • Posted on March 8, 2012

    strtotime — Parse about any English textual datetime description into a Unix timestamp

    
    int strtotime ( string $time [, int $now = time() ] )
    

    Examples

    
    echo strtotime("now");
    echo strtotime("10 September 2000");
    echo strtotime("+1 day");
    echo strtotime("+1 week");
    echo strtotime("+1 week 2 days 4 hours 2 seconds");
    echo strtotime("next Thursday");
    echo strtotime("last Monday");
    echo strtotime("tomorrow 07:00");