[Info-vax] date comparison format from a program

VAXman- at SendSpamHere.ORG VAXman- at SendSpamHere.ORG
Mon May 20 12:14:02 EDT 2019


In article <gkg09mFspdnU1 at mid.individual.net>, =?UTF-8?Q?g=c3=a9rard_Calliet?= <gerard.calliet at pia-sofer.fr> writes:
>Le 20/05/2019 à 16:53, VAXman- at SendSpamHere.ORG a écrit :
>> In article <gkfsr0Fs1fbU1 at mid.individual.net>, =?UTF-8?Q?g=c3=a9rard_Calliet?= <gerard.calliet at pia-sofer.fr> writes:
>>> Le 20/05/2019 à 16:19, VAXman- at SendSpamHere.ORG a écrit :
>>>> In article <gkfoamFr2t2U1 at mid.individual.net>, =?UTF-8?Q?g=c3=a9rard_Calliet?= <gerard.calliet at pia-sofer.fr> writes:
>>>>> Hello,
>>>>>
>>>>> Is there a way to do from a compiled program (in C, for example)
>>>>> something as simple as done by the lexical f$cvtime with "comparison"
>>>>> parameter in DCL to get date strings which can easyly sorted? Pure VMS
>>>>> realm whished.
>>>>>
>>>>> (I have to write program examples in C with VMS dates format and
>>>>> associated routines and compare with RtlC usages).
>>>>>
>>>>> Gérard Calliet
>>>>
>>>> SYS$NUMTIM
>>>>
>>> Thanks. Same question for f$integer, f$string (the simplest solution)
>> 
>> You're looking for the DCL equivalent of expression evaluating and returning
>> an integer or string?
>> 
>My question was why using a f$integer, f$string, f$cvtime is so simple 
>in DCL and why I don't find at the same time something similar and 
>simple from compiled programs.

Well, there is a great deal of code behind those lexical functions to make
them appear so simple.  If you'd supply a simple DCL snippet of that which
you want to achieve from a compiled language might help.

-- 
VAXman- A Bored Certified VMS Kernel Mode Hacker    VAXman(at)TMESIS(dot)ORG

I speak to machines with the voice of humanity.



More information about the Info-vax mailing list