PHP Classes

examples and strtotime

Recommend this page to a friend!

      text2timestamp  >  All threads  >  examples and strtotime  >  (Un) Subscribe thread alerts  
Subject:examples and strtotime
Summary:where are the examples and do you know strtotime
Messages:2
Author:rudie dirkx
Date:2010-12-08 17:08:13
Update:2010-12-09 17:07:29
 

  1. examples and strtotime   Reply   Report abuse  
Picture of rudie dirkx rudie dirkx - 2010-12-08 17:08:14
Too bad there aren't any examples of valid inputs.

Also, how is this different from strtotime? http://php.net/strtotime

  2. Re: examples and strtotime   Reply   Report abuse  
Picture of Igor Shevchuk Igor Shevchuk - 2010-12-09 17:07:29 - In reply to message 1 from rudie dirkx
Hello,
Here few examples
1. 6pm call mom
2. 6:30pm call mom
3. 6:19p call mom
4. 6p call mom
5. 6am call mom
6. 6a call mom
7. 2 hours call mom
8. 2 hrs call mom
9. 30 minutes call mom
10. 30 mins call mom
11. today at 6pm call mom – the next 6pm, if 6pm has already passed.
12. Saturday 6pm call mom – The next Saturday, if Saturday has already passed
13. tomorrow at 6pm – calculates tomorrow regardless if it’s after 6pm or not.
As for strtotime, strtotime — Parse about any English textual datetime description into a Unix timestamp, so strtotime don't understand any of these examples