<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Jason,</p>
    <p>Your code looks ok, but I suspect your TDEF is causing the
      problem.  A typical return from 'q time' would be like:</p>
    <p>Time = 00Z027FEB2017 to 00Z27FEB2017  Mon to Mon</p>
    <p>and the output from your code below should return:</p>
    <p>10Z Fri JAN 06, 2017</p>
    <p>The "02:" part makes me think you are getting hours:minutes in
      the return from your "q time" command.  Is this the case (i.e.,
      what is the return from "q time")?</p>
    <p>Jim<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 2/27/17 2:59 AM,
      <a class="moz-txt-link-abbreviated" href="mailto:jason@solargrafix.com">jason@solargrafix.com</a> wrote:<br>
    </div>
    <blockquote cite="mid:05E1FF09F4314A6E99E6F73C81DB8A2F@JasonPC"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 11 (filtered
        medium)">
      <style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
      <div class="Section1">
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">Hello,  I am having some difficulties
              formatting the
              time stamp for my outputted HRRR model images.  Here is
              the code I use for
              the time stamp:<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">  'q time'<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">    timestr=subwrd(result, 3)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">    weekday1=subwrd(result,6)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">    day=substr(result, 11, 9)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">    hr=substr(result, 7, 20)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">    h=substr(result, 8, 3)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">    m=substr(result, 13, 3)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">    d=substr(result, 11, 2)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">    y=substr(result, 16, 4)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">   'draw string 7.8 0.3 'h' 'weekday1'
              'm' 'd', 'y<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">But the output shows up like this on my
              HRRR images:   02:
              Tue z28 59, FEB2<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">Any assistance would be appreciated.<o:p></o:p></span></font></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>