Re: Military <-> Standard times
| From: | tedd | Date: | Wed, 21 Jan 2009 23:16:28 +0000 |
| Subject: | Re: Military <-> Standard times | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286968@lists.php.net to get a copy of this message | ||
At 9:19 PM +0100 1/21/09, Jochem Maas wrote:
tedd schreef:Hey, you called me "schreef" and that means "an end of a stroke" (Arrggg, that has all sorts of meanings). :-)Hi gang:would you stop calling me that, I'll bet it means something rude in korean. :-P
wouldn't the slickest way be to carry/store unixtimestamps and then output whatever version you need when you need it, the conversion back and forth *seems* pointless.I'm into pointless stuff -- I'm symmetrically challenged. I don't like doing anything that can't be undone.
what's with the superfluous variable? why not just: return strftime('%R', strtotime($t));I like superfluous code -- it makes me feel better and I like to see the computer work (while they still work for us). Besides, oddly enough I can understand return $t; better than return strftime('%R', strtotime($t));
also, small point, if you came across the function militaryToStandard() somewhere in the code, how would one know if it were all about about time formats or elephants?Good point, I should have used militaryToStandardElephants() Thanks, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com