<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="cid:filelist.xml@01C9D49D.5967F930">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;
        mso-font-charset:0;
        mso-generic-font-family:script;
        mso-font-pitch:variable;
        mso-font-signature:647 0 0 0 159 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin-top:6.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:Arial;
        mso-fareast-font-family:"Times New Roman";
        mso-bidi-font-family:"Times New Roman";}
p.MsoMacroText, li.MsoMacroText, div.MsoMacroText
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        tab-stops:24.0pt 48.0pt 1.0in 96.0pt 120.0pt 2.0in 168.0pt 192.0pt 3.0in;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-font-family:"Times New Roman";
        color:green;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:Arial;
        mso-fareast-font-family:"Times New Roman";
        mso-bidi-font-family:"Times New Roman";}
span.EmailStyle15
        {mso-style-type:personal;
        mso-ansi-font-size:10.0pt;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:black;}
span.EmailStyle16
        {mso-style-type:personal;
        mso-ansi-font-size:12.0pt;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        mso-ansi-font-size:12.0pt;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><span class=EmailStyle18><font size=3 color=navy face=Arial><span
style='font-size:12.0pt'>That doesn&#8217;t work because the schema is updated by the
time the update runs. The only thing I can think of now is to rename the old
column and use &#8220;db_column_exists.&#8221;<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle18><font size=3 color=navy face=Arial><span
style='font-size:12.0pt'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle18><font size=3 color=navy face=Arial><span
style='font-size:12.0pt'>Next question: Is there are Drupal or
database-independent date formatting function that produces a DATETIME value. I
know I can use date() with something appropriate, but I don&#8217;t know how
efficient that is.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle18><font size=3 color=navy face=Arial><span
style='font-size:12.0pt'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle18><font size=3 color=navy face=Arial><span
style='font-size:12.0pt'>Would there be any interest in my submitting a patch for
&#8220;format_date($time, &#8216;datetime&#8217;)?&#8221;<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle18><font size=3 color=navy face=Arial><span
style='font-size:12.0pt'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoAutoSig><!--[if supportFields]><span class=EmailStyle18><font 
color=navy><span style='mso-element:field-begin'></span><span 
style="mso-spacerun: yes">&nbsp;</span>AUTOTEXTLIST \s &quot;E-mail 
Signature&quot; <span style='mso-element:field-separator'></span></font></span><![endif]--><font
color=fuchsia face="Comic Sans MS"><span style='font-family:"Comic Sans MS";
color:fuchsia'>Nancy E. Wichmann, PMP<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;mso-bidi-font-size:12.0pt;mso-bidi-font-family:Arial;color:navy'>Injustice
anywhere is a threat to justice everywhere. - Martin L. King, Jr.</span></font><font
color=navy><span style='color:navy;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoNormal><!--[if supportFields]><span class=EmailStyle18><font 
color=navy><span style='mso-element:field-end'></span></font></span><![endif]--><span
class=EmailStyle18><font color=navy><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></font></span></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:black'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
development-bounces@drupal.org [mailto:development-bounces@drupal.org]<b><span
style='font-weight:bold'>On Behalf Of </span></b>Nancy Wichmann<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, May 14, 2009 12:46
PM<br>
<b><span style='font-weight:bold'>To:</span></b> development@drupal.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [development] DB
Column Format</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face=Arial><span
style='font-size:12.0pt'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle16><font
size=3 color=navy face=Arial><span style='font-size:12.0pt'>Okay, I found:<o:p></o:p></span></font></span></p>

<p class=MsoMacroText style='margin-left:.5in'><font size=2 color=green
face="Courier New"><span style='font-size:10.0pt'><span style="mso-spacerun:
yes">&nbsp; </span>$schema = drupal_get_schema('mytable');<span
style="mso-spacerun: yes">&nbsp; </span><o:p></o:p></span></font></p>

<p class=MsoMacroText style='margin-left:.5in'><font size=2 color=green
face="Courier New"><span style='font-size:10.0pt'><span style="mso-spacerun:
yes">&nbsp; </span>if ($schema['fields']['last_checked']['type'] != 'datetime')
{<o:p></o:p></span></font></p>

<p class=MsoMacroText style='margin-left:.5in'><font size=2 color=green
face="Courier New"><span style='font-size:10.0pt'>&#8230;<o:p></o:p></span></font></p>

<p class=MsoMacroText style='margin-left:.5in'><font size=2 color=green
face="Courier New"><span style='font-size:10.0pt'><span style="mso-spacerun:
yes">&nbsp; </span>}<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=3 color=black face=Arial><span style='font-size:
12.0pt;color:black'><![if !supportEmptyParas]>&nbsp;<![endif]></span></font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

</div>

</body>

</html>