Skip to content

Test Output (example)

agileadam edited this page Apr 22, 2012 · 3 revisions

This is the output of the test.php file if viewed in a web browser (as of commit #540cbc7)

Below, there is one example that is not working correctly (line #2)

##test.php Current date/time: Sun, 22 Apr 2012 16:01:25 -0400

orig_str token_str datetime_str timestamp result_date
Eat food friday after next Eat food !t_friday after next friday 1335499200 Fri, 27 Apr 2012 00:00:00 -0400
In 2 days, eat some food In 2 days, eat some food ------ 0 No time detected
Eat food at 15:00 Eat food !t_15:00 15:00 1335121200 Sun, 22 Apr 2012 15:00:00 -0400
Eat food at 3pm Eat food !t_3pm 3pm 1335121200 Sun, 22 Apr 2012 15:00:00 -0400
Eat food at 3pm and then drink beer Eat food !t_3pm and then drink beer 3pm 1335121200 Sun, 22 Apr 2012 15:00:00 -0400
Eat food at 3 pm Eat food !t_3pm 3pm 1335121200 Sun, 22 Apr 2012 15:00:00 -0400
Eat food by 5:30pm Eat food !t_5:30pm 5:30pm 1335130200 Sun, 22 Apr 2012 17:30:00 -0400
Eat food by 5:30 pm Eat food !t_5:30pm 5:30pm 1335130200 Sun, 22 Apr 2012 17:30:00 -0400
Eat food in 3 hours Eat food !t_3 !t_hours 3 hours 1335135685 Sun, 22 Apr 2012 19:01:25 -0400
Eat food tomorrow Eat food !t_tomorrow tomorrow 1335153600 Mon, 23 Apr 2012 00:00:00 -0400
Eat food in 1 day Eat food !t_1 !t_day 1 day 1335211285 Mon, 23 Apr 2012 16:01:25 -0400
Eat food in 2 days Eat food !t_2 !t_days 2 days 1335297685 Tue, 24 Apr 2012 16:01:25 -0400
Eat food in a couple days Eat food !t_3 !t_days 3 days 1335384085 Wed, 25 Apr 2012 16:01:25 -0400
Eat food in a couple of days Eat food !t_3 !t_days 3 days 1335384085 Wed, 25 Apr 2012 16:01:25 -0400
Eat food in a few days Eat food !t_2 !t_days 2 days 1335297685 Tue, 24 Apr 2012 16:01:25 -0400
Eat food in 4 weeks Eat food !t_4 !t_weeks 4 weeks 1337544085 Sun, 20 May 2012 16:01:25 -0400
Eat food on Tuesday Eat food !t_Tuesday Tuesday 1335240000 Tue, 24 Apr 2012 00:00:00 -0400
Eat food on Tue Eat food !t_Tue Tue 1335240000 Tue, 24 Apr 2012 00:00:00 -0400
Eat food next Sunday Eat food !t_next !t_Sunday next Sunday 1335672000 Sun, 29 Apr 2012 00:00:00 -0400
Eat food in 2 Sundays Eat food !t_2 !t_Sundays 2 Sundays 1335679200 Sun, 29 Apr 2012 02:00:00 -0400
Eat food last week Eat food !t_last !t_week last week 1334520085 Sun, 15 Apr 2012 16:01:25 -0400
Eat food next week Eat food !t_next !t_week next week 1335729685 Sun, 29 Apr 2012 16:01:25 -0400
Eat food quickly Eat food quickly ---- 0 No time detected
Eat food tomorrow at 9am Eat food !t_tomorrow !t_9am tomorrow 9am 1335186000 Mon, 23 Apr 2012 09:00:00 -0400
Eat food Friday at 9am Eat food !t_Friday !t_9am Friday 9am 1335531600 Fri, 27 Apr 2012 09:00:00 -0400
Eat food day after tomorrow Eat food !t_tomorrow !t_+1 !t_day tomorrow +1 day 1335240000 Tue, 24 Apr 2012 00:00:00 -0400
Eat food day before yesterday Eat food !t_yesterday !t_-1 !t_day yesterday -1 day 1334894400 Fri, 20 Apr 2012 00:00:00 -0400
Eat food on July 5 Eat food !t_July !t_5 July 5 1341460800 Thu, 05 Jul 2012 00:00:00 -0400
Eat food on July 5 at 10pm Eat food !t_10pm !t_July !t_5 10pm July 5 1341540000 Thu, 05 Jul 2012 22:00:00 -0400
Eat food on July 5 at 10pm with Suzy Eat food !t_10pm !t_July !t_5 with Suzy 10pm July 5 1341540000 Thu, 05 Jul 2012 22:00:00 -0400
Eat food at 10pm on July 5 Eat food !t_10pm !t_July !t_5 10pm July 5 1341540000 Thu, 05 Jul 2012 22:00:00 -0400
Eat food at 9am tomorrow Eat food !t_tomorrow !t_9am tomorrow 9am 1335186000 Mon, 23 Apr 2012 09:00:00 -0400
Eat food at 9am Tuesday Eat food !t_Tuesday !t_9am Tuesday 9am 1335272400 Tue, 24 Apr 2012 09:00:00 -0400
Eat food at 9am next Tuesday Eat food !t_next !t_Tuesday !t_9am next Tuesday 9am 1335272400 Tue, 24 Apr 2012 09:00:00 -0400
Clone this wiki locally