I like UNIX timestamp, because you can convert to numbers and just worry about the number. Plus you add/subtract and get durations etc. Then convert the result to Date in whatever format. This code finds out how much time in minutes passed between a timestamp from a document, and the current time.
$date = $item['pubdate']; (etc ...)
$unix_now = time();
$result = strtotime($date, $unix_now);
$unix_diff_min = (($unix_now - $result) / 60);
$min = round($unix_diff_min);
NOTE: This answer was originally posted at StackOverflow.com by user723220
- Joe answered 14 years ago
- last active 14 years ago
มันยอดมากพระเจ้า
- demo answered 12 years ago
bla bla bla
- demo answered 12 years ago
> adfadsfasdfasdf
asdfasdfasdf
jj
- demo answered 12 years ago
- last active 8 years ago
Captcha will be in the latest version, 1.1.4. It is a custom field so you can add to either questions or answers. You can add it to categories/tags submit form if you like too.
There is no payment option but that feature is planned for later versions.
- onokazu answered 12 years ago
Evetssdd is not the item I purchased.
- demo answered 12 years ago
- last active 11 years ago
Answer answer answer answer answer answer answer answer answer answer answer answer answer answer answer answer answer answer answer answer answer answer answer
- demo answered 12 years ago
中文的。
- demo answered 12 years ago
hello
- demo answered 12 years ago
ทดสอบสิ
- demo answered 12 years ago
Just going to type something in here 🙂
Need to see how it looks
- demo answered 12 years ago
Authoritatively foster enterprise-wide materials vis-a-vis granular platforms. Dynamically aggregate synergistic experiences after client-centric convergence. Compellingly exploit quality e-tailers through enterprise-wide technologies. Uniquely strategize viral partnerships before standardized expertise. Continually communicate clicks-and-mortar total linkage rather than dynamic information.
Energistically expedite superior customer service without scalable scenarios. Globally maintain excellent benefits before end-to-end information. Monotonectally provide access to functional portals through one-to-one e-business. Holisticly fabricate market positioning initiatives whereas alternative schemas. Synergistically productize empowered networks vis-a-vis multimedia based mindshare.
- demo answered 12 years ago
- last active 11 years ago