Added 'today' special time, which starts at 00:00:00
Add autoconf checks for newly used functions

Required for the 'today' keyword: memset, time, strftime, strptime,
localtime.  Also use localtime instead of localtime_r, as it's
likely to be more widespread.