Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 744 Bytes

readme.md

File metadata and controls

32 lines (23 loc) · 744 Bytes

PHP strtotime

Replacement of buggy php function strtotime [1] [2]. It uses parse-datetime module from Gnulib.

Usage

<?php
$tommorow = strtotime2('+1 day');

Build

For example on Debian system:

apt-get install make autoconf automake autotools-dev libtool gcc bison php5-dev

./gnulib/gnulib-tool --import --libtool parse-datetime
autoreconf --install
./configure
make

sudo make install
sudo echo "extension=strtotime.so" > /etc/php5/mods-available/strtotime.ini
sudo php5enmod strtotime

References