<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Brian,<br>
<br>
Are you doing this with an open dataset? If so, you might be able
to take advantage of the time step. For example, if your file has a
time step of 1 hour, <br>
<br>
time1 = 1<br>
'set t 'time1<br>
'q time'<br>
date1 = subwrd(result,3)<br>
'set t 'time1 + 36<br>
'q time'<br>
date2 = subwrd(result,3)<br>
say time1', 'time2<br>
<br>
Jim<br>
<br>
<div class="moz-cite-prefix">On 2/24/16 6:43 AM, Brian Gaze wrote:<br>
</div>
<blockquote
cite="mid:2004578832.2034950.1456332209260.JavaMail.open-xchange@oxbe24.tb.ukmail.iss.as9143.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<p>Hi,</p>
<p>Is there a function in GrADS to add x hours to an existing
datetime string and get the resulting datetime? </p>
<p>For example where 00Z23feb2016 is the existing datetime string:</p>
<p>00Z23feb2016 + 36 hours = 12Z23feb2016</p>
<p>Thanks<br>
</p>
<p>Brian</p>
<p> <br>
</p>
<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>