Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (11)
  • ESXi (1)
  • Git (4)
  • Google Cloud (3)
  • Javascript (6)
  • Kubernetes (4)
  • Linux (36)
  • Mac (7)
  • Magento (4)
  • Mysql (14)
  • 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");