[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Tue Apr 27 09:17:55 2004 -->
- <!--x-from-r13: cunfrsk ng znthfncghf.pbz (Xnfba Sgurevqtr) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: 1083070211.17414.55.camel@devel --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] PERL + SQL Dates -->
- <li><em>date</em>: Tue Apr 27 09:17:55 2004</li>
- <li><em>from</em>: phasefx at magusaptus.com (Jason Etheridge)</li>
- <li><em>in-reply-to</em>: <1083070211.17414.55.camel@devel></li>
- <li><em>references</em>: <1083070211.17414.55.camel@devel></li>
- <li><em>subject</em>: [ale] PERL + SQL Dates</li>
I thought I had some answers, but there's a slight discrepency:
perl -e 'use POSIX; print mktime(0,0,12,14,4-1,2004-1900,0,0,0), "\n";'
1081962000
mysql> SELECT unix_timestamp('2004-4-14 12:00:00');
+--------------------------------------+
| unix_timestamp('2004-4-14 12:00:00') |
+--------------------------------------+
| 1081958400 |
+--------------------------------------+
YMMV :D
-- Jason
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01168" href="msg01168.html">[ale] PERL + SQL Dates</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01170.html">[ale] PERL + SQL Dates</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01172.html">[ale] snmptrapsd reporting, um, er - flawed logic</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01170.html">[ale] PERL + SQL Dates</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01173.html">[ale] PERL + SQL Dates</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01171"><strong>Date</strong></a></li>
<li><a href="threads.html#01171"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>