<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: need routine to parse combination time in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537044#M5578</link>
    <description>Is there some good reason why this routine has never been made a callable LIB$ routine?  &lt;BR /&gt;&lt;BR /&gt;If it were already provided in the system runtime libraries -- wouldn't it be simpler just to set up a call to the lib$ routines to &lt;BR /&gt;&lt;BR /&gt;1.  turn the combination time into an absolute binary time, then&lt;BR /&gt;2.  turn the binary time back into a string?&lt;BR /&gt;&lt;BR /&gt;I mean ... why add the burden of having to maintain the macro code? &lt;BR /&gt;&lt;BR /&gt;Robert</description>
    <pubDate>Wed, 04 May 2005 08:24:11 GMT</pubDate>
    <dc:creator>Robert_Boyd</dc:creator>
    <dc:date>2005-05-04T08:24:11Z</dc:date>
    <item>
      <title>need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537041#M5575</link>
      <description>Does anyone have a Fortran or C routine that will take as input a date-time string in combination time format, parse it itself, and return an absolute time?&lt;BR /&gt;&lt;BR /&gt;I already know how to define a .CLD module with type=$DATETIME, pass the string to CLI$DCL_PARSE and call CLI$GET_VALUE, but unfortunately I have an application for which that approach is not an option.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2005 17:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537041#M5575</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2005-05-03T17:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537042#M5576</link>
      <description>Jess,&lt;BR /&gt;&lt;BR /&gt;  NOTE THIS IS STRICTLY UNSUPPORTED!&lt;BR /&gt;&lt;BR /&gt;  I've attached a MACRO32 Module extracted from them OpenVMS sources which implements LIB$CVT_TIME. It's an internal routine used by DCL to parse combination times. I've replaced the names of the engineers in comments with "Engineer#n", to comply with privacy rules, but otherwise, it's directly from the V7.3-2 sources. &lt;BR /&gt;&lt;BR /&gt;  RENAME the .TXT file to .MAR and compile with:&lt;BR /&gt;&lt;BR /&gt;$ MACRO CVTTIME&lt;BR /&gt;&lt;BR /&gt;  You'll get a few %AMAC-I messages which can be ignored (or fixed... left as an exercise ;-) &lt;BR /&gt;&lt;BR /&gt;  Pass it your combination time string, it will return the binary time, and optionally a string. See comments for full details.&lt;BR /&gt;&lt;BR /&gt;  (aside... learnt something new, the strings "LOGIN" and "BOOTTIME" may be used just like "YESTERDAY", "TODAY" and "TOMORROW" in combination times - not documented but seems to work back as far as V6.2)&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2005 20:51:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537042#M5576</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-05-03T20:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537043#M5577</link>
      <description>Oops, forgot the attachment...&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2005 20:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537043#M5577</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-05-03T20:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537044#M5578</link>
      <description>Is there some good reason why this routine has never been made a callable LIB$ routine?  &lt;BR /&gt;&lt;BR /&gt;If it were already provided in the system runtime libraries -- wouldn't it be simpler just to set up a call to the lib$ routines to &lt;BR /&gt;&lt;BR /&gt;1.  turn the combination time into an absolute binary time, then&lt;BR /&gt;2.  turn the binary time back into a string?&lt;BR /&gt;&lt;BR /&gt;I mean ... why add the burden of having to maintain the macro code? &lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Wed, 04 May 2005 08:24:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537044#M5578</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2005-05-04T08:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537045#M5579</link>
      <description>just half a sentence to complete Robert:&lt;BR /&gt;&lt;BR /&gt;... if it is already there, and has to be maintained, for the benefit of DCL?&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Wed, 04 May 2005 09:06:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537045#M5579</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-05-04T09:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537046#M5580</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;In my original post I asked for a C or Fortran routine - weren't you paying attention?  No points for you!  :)&lt;BR /&gt;&lt;BR /&gt;Just kidding - THANK YOU VERY MUCH for this macro routine.  I was hoping for a routine that worked pretty much the same as the CLI$ type=$DATETIME interface, but I expected that it would be impossible to match some of its more obscure "features".  To get the actual VMS routine was far more than I could have hoped.&lt;BR /&gt;&lt;BR /&gt;I do wonder about your "STRICTLY UNSUPPORTED" caveat.  This seems to be a stand-alone module that only uses VMS system services and a RTL routine ($BINTIM, $ASCTIM, $GETTIM, $GETSYI, $GETJPI, LIB$SCOPY_DXDX) in the supported way.&lt;BR /&gt;&lt;BR /&gt;Now just to be safe I have removed the weak reference to DCL$SCOPY_DXDX and stripped the LIB$ prefix from the names of the module's three entry points.&lt;BR /&gt;&lt;BR /&gt;Therefore I would expect that these routines would continue to work the same way they do now under any future version of VMS.  Am I missing something?</description>
      <pubDate>Wed, 04 May 2005 17:15:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537046#M5580</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2005-05-04T17:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537047#M5581</link>
      <description>&lt;BR /&gt;&amp;gt;&amp;gt; I do wonder about your "STRICTLY UNSUPPORTED" caveat.&lt;BR /&gt;&lt;BR /&gt;It is just a CYA clause. John, nor HP, will support that code, but full expect it to work and keep on working.  But if it were to behave oddly, for example a poor reaction to a random input addres, then do not try to complain about that code. It will be just as if you written it, and you support it. No you may solicit HP's help, but it would not be under a support contract but under some time &amp;amp; material agreement.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; This seems to be a stand-alone module that only uses VMS system services and a RTL routine ($BINTIM, $ASCTIM, $GETTIM, $GETSYI, $GETJPI, LIB$SCOPY_DXDX) in the supported way.&lt;BR /&gt;&lt;BR /&gt;Right. So we expect it to work for ever.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Now just to be safe I have removed the weak reference to DCL$SCOPY_DXDX and stripped the LIB$ prefix from the names of the module's three entry points.&lt;BR /&gt;&lt;BR /&gt;Excellent!&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Therefore I would expect that these routines would continue to work the same way they do now under any future version of VMS. &lt;BR /&gt;&lt;BR /&gt;Right&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Am I missing something?&lt;BR /&gt;&lt;BR /&gt;No, just a place to complain if the code does not always do exactly what you expect.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 04 May 2005 23:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537047#M5581</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-05-04T23:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537048#M5582</link>
      <description>Jess,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Therefore I would expect that these routines would continue to work the same way they do now under any future version of VMS. Am I missing something? &lt;BR /&gt;&lt;BR /&gt;  Hein is right. The "STRICTLY UNSUPPORTED" is an "all care, no responsibility" thing. I can give you the code, but I can't make a committment to support it into the future. &lt;BR /&gt;&lt;BR /&gt;  There's no reason to expect it will stop working, BUT, if anyone changes, fixes or adds stuff to the DCL code, it will be your responsibility to keep it up to date.&lt;BR /&gt;&lt;BR /&gt;  That said, I've entered a suggestion that this routine be added to LIBRTL for general consumption (but no promises that it will be accepted).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2005 23:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537048#M5582</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-05-05T23:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537049#M5583</link>
      <description>Jess,&lt;BR /&gt;&lt;BR /&gt;For the record, I second John's suggestion that this routine be added to the official LIBRTL. &lt;BR /&gt;&lt;BR /&gt;A suggestion on the LIBRTL and a possible relatively innocuous integration: LIB$TABLE_PARSE already has support for "subexpressions" the full date example is a good possible use of subexpressions (it would also provide a clean way to provide internationalization).&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Fri, 06 May 2005 04:54:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537049#M5583</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2005-05-06T04:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: need routine to parse combination time</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537050#M5584</link>
      <description>Jess, you'll need to upgrade to VMS 7.3 before you can do any of that stuff...&lt;BR /&gt;&lt;BR /&gt;Bill</description>
      <pubDate>Thu, 02 Jun 2005 14:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-routine-to-parse-combination-time/m-p/3537050#M5584</guid>
      <dc:creator>Speers</dc:creator>
      <dc:date>2005-06-02T14:53:48Z</dc:date>
    </item>
  </channel>
</rss>

